瀏覽代碼

Bug fix: DocX.Load not throwing FileNotFoundException

master
coffeycathal_cp 16 年之前
父節點
當前提交
25e1463e2b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      DocX/DocX.cs

+ 1
- 1
DocX/DocX.cs 查看文件

public static DocX Load(string filename) public static DocX Load(string filename)
{ {
if (!File.Exists(filename)) if (!File.Exists(filename))
throw new FileNotFoundException(string.Format("File could not be found {0}"));
throw new FileNotFoundException(string.Format("File could not be found {0}", filename));
// Open the docx package // Open the docx package
wdDoc = WordprocessingDocument.Open(filename, true); wdDoc = WordprocessingDocument.Open(filename, true);

Loading…
取消
儲存