摘要: using Microsoft.Office.Interop.Excel; //引用 public void PrintPriviewExcelFile(string filePath) { Microsoft.Office.Interop.Excel.ApplicationClass xlApp 阅读全文
posted @ 2016-12-29 15:30 往事随风q 阅读(4810) 评论(0) 推荐(0) 编辑
摘要: //打印操作,套打、打印、预览 enum PrintFlag { /// <summary> /// 套打,只打印没有印刷的部分 /// </summary> CasePrint, /// <summary> /// 打印全部 /// </summary> PrintAll, /// <summar 阅读全文
posted @ 2016-12-29 15:22 往事随风q 阅读(1928) 评论(1) 推荐(0) 编辑
摘要: // WPS using EtApp = ET; using System.Reflection; using System.Runtime.InteropServices; using System.Configuration; //--Excel using EtAppExcel = Micro 阅读全文
posted @ 2016-12-29 15:20 往事随风q 阅读(2073) 评论(0) 推荐(0) 编辑
摘要: /// using System; using System.Collections.Generic; using System.Text; using System.Data; using System.Windows.Forms; using System.Reflection; namespa 阅读全文
posted @ 2016-12-29 15:18 往事随风q 阅读(348) 评论(0) 推荐(0) 编辑
摘要: 通过程序填上数据然后打印出来这个需求有两种方法一种是通过代码打开Excel模版然后填入数据然后再打印。 第二种方法就是我将要介绍的 1、将Excel设置好格式另存为HTML页将Excel转化为HTML的Table 2、将HTML用记事本打开把这个HTML页将<style></style>和<tabl 阅读全文
posted @ 2016-12-29 15:09 往事随风q 阅读(515) 评论(0) 推荐(0) 编辑