摘要: 为了将Office文档转换为PDF文件,在网上找了些工具类,但转换效果不理想,采用office自带的功能能比较好的实现转换。首先需要安装 SaveAsPDFandXPS.exe 插件在工程中添加com引用,如下图代码如下: 1: using System; 2: using System.Collections.Generic; 3: using System.Text; 4: 5: using Microsoft.Office.Core; 6: using Word = Microsoft.Office.Interop.Word; 7: using Excel ... 阅读全文
posted @ 2013-02-21 13:46 中小刀 阅读(1615) 评论(1) 推荐(0) 编辑