随笔分类 -  .net office

摘要:1、警告: 方法“Microsoft.Office.Interop.Word._Document.Close(ref object, ref object, ref object)”和非方法“Microsoft.Office.Interop.Word.DocumentEvents2_Event.Cl 阅读全文
posted @ 2018-12-07 12:00 软件开发-汪七北 阅读(497) 评论(0) 推荐(0)
摘要:方案一、采用OpenXml(服务器不依赖Office组件) 在word生成的最后加上代码: using (WordprocessingDocument docx = WordprocessingDocument.Open(sourceRealReportPath, true)) { //操作word 阅读全文
posted @ 2018-12-07 11:48 软件开发-汪七北 阅读(1094) 评论(0) 推荐(0)