随笔分类 - .net office
摘要:1、警告: 方法“Microsoft.Office.Interop.Word._Document.Close(ref object, ref object, ref object)”和非方法“Microsoft.Office.Interop.Word.DocumentEvents2_Event.Cl
阅读全文
摘要:方案一、采用OpenXml(服务器不依赖Office组件) 在word生成的最后加上代码: using (WordprocessingDocument docx = WordprocessingDocument.Open(sourceRealReportPath, true)) { //操作word
阅读全文