打开现有文档进行编辑 若要打开现有文档,您可以将 Word类实例化,如以下 using 语句所示. 为此,您可以使用Open(String, Boolean) 方法打开具有指定 fileName 的字处理文件,同时将布尔参数设置为 true 以允许编辑文档. using (WordprocessingDocument wdDoc = WordprocessingDocument.Open(fileName, true)) { // Insert other code here. } using …