摘要: 辅助类1 json和datatable互转: 辅助类2 Excel表格数据和datatable互转: 书签内容替换封装: 调用: 效果: 打印 doc.Print(); 文本替换 doc.Range.Replace("{{name}}", "张三", false, true); 版权声明:本文为博主 阅读全文
posted @ 2015-05-08 17:32 Ace001 阅读(2908) 评论(0) 推荐(0) 编辑
摘要: 由于NPOI暂时没找到书签内容替换功能,所以换用Apose.Word组件.using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;... 阅读全文
posted @ 2015-05-08 15:08 Ace001 阅读(4730) 评论(0) 推荐(0) 编辑
摘要: 调用word的com组件将400条数据导入word表格中耗时10分钟简直不能忍受,使用NPOI组件耗时4秒钟.但是NPOI中替换书签内容的功能不知道是不支持还是没找到.辅助类 Excel表格数据与DataTable互转:using System;using System.Collections.Ge... 阅读全文
posted @ 2015-05-08 14:57 Ace001 阅读(2776) 评论(1) 推荐(1) 编辑
摘要: 安装office2007,添加com引用Microsoft Word12.0 Object Library和Microsoft Office12.0 Object Libraryusing System;using System.Collections.Generic;using System.Li... 阅读全文
posted @ 2015-05-08 14:38 Ace001 阅读(798) 评论(1) 推荐(0) 编辑