2008年8月21日

Excel中设置打印格式

摘要: 在2007中,exclel文档会保存自身定义的打印设置而非读取打印机的设置,所以可以通过以下方法来修改excel的打印设置。 /// ///设置excel文档的页面大小,打印方向 /// /// public void SetExcel(string fileName, string paperSize, bool is... 阅读全文

posted @ 2008-08-21 15:03 正在输入 阅读(2920) 评论(0) 推荐(0) 编辑

C# 打印机设置

摘要: 调用windows API修改打印机的默认设置,代码如果,供大家参考。 using System; using System.ComponentModel; using System.Runtime.InteropServices; using System.Drawing.Printing; namespace ConvertToPDF { class Customprinter... 阅读全文

posted @ 2008-08-21 14:57 正在输入 阅读(10528) 评论(1) 推荐(0) 编辑

导航