摘要: 主要思路,通过GridView来导出文档。新建一个Aspx页面,页面创建GridView控件,后台绑定好数据源。然后load中直接打印即可导出前台的GridView ... 阅读全文
posted @ 2014-07-30 10:45 LiGoper 阅读(715) 评论(2) 推荐(0) 编辑
摘要: 主要思路:实例化Gridview,将值绑定后输出。。。(用烂了的方法)贴上核心代码: public static void ExportToExcel(DataTable dataList, string[] fields, string[] headTexts, string title, str... 阅读全文
posted @ 2014-07-30 10:05 LiGoper 阅读(2458) 评论(0) 推荐(0) 编辑
摘要: 一、Office组件导出Word(服务器配置麻烦) 需要引用Office的DLL,在下文的附件中,不同的Offic版本用的不一样,虽然高级版本可以兼容低级的,不过,还是统一版本最好 贴上核心代码(转载): 1 Microsoft.Office.Interop.Word._Application ap 阅读全文
posted @ 2014-07-30 10:01 LiGoper 阅读(1664) 评论(0) 推荐(0) 编辑