1. 首页
  2. 编程语言
  3. C#
  4. C# dwg 转为 pdf

C# dwg 转为 pdf

上传者: 2021-04-16 18:29:00上传 SLN文件 993B 热度 16次
办公常用 dwg文件 转换为 pdf 文件 并能实现 static bool IsFileInUse(string fileName) { bool inUse = true; if (File.Exists(fileName)) { FileStream fs = null; try { fs = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.None); if (fs.CanWrite) { inUse = false; } else inUse = true; inUse = false; } catch (Exception error) { MessageBox.Show("操作失败!"); } finally { if (fs != null) fs.Close(); } return inUse;//by yl true表示正在使用,false没有使用 } else { return false;//文件不存在,肯定没有被使用 } }
下载地址
用户评论
码姐姐匿名网友 2025-04-11 05:13:17

文件没有,怎么通过的#标题与内容不符#毫无价值