![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
打印
brian0031
这个作者很懒,什么都没留下…
展开
-
c# 打印时换行的处理
using System.Drawing.Printing;using System.Drawing.Drawing2D; //每隔55个字换行int k = Ds.Tables[0].Rows[0]["请购原因"].ToString().Trim().Length / 55;i原创 2011-07-13 13:15:17 · 2793 阅读 · 0 评论 -
c#中实现打印指定页(特定页), 附原代码
private int page;private int maxpage;private int b = 0; //导入相关数据时用到,第几笔资料private int c = 0; //显示共多少页 private void form2_Load(object sende原创 2011-07-25 16:43:46 · 2984 阅读 · 1 评论 -
C#打印设置(二种方法)
方法一:private void toolStripButton7_Click(object sender, EventArgs e){ PrintDialog pDlg = new PrintDialog(); pDlg.AllowSomePages = true;原创 2011-07-25 15:08:51 · 2862 阅读 · 0 评论 -
C#打印页面设置(横向,页宽,页高)
c#打印时页面设置using Excel = Microsoft.Office.Interop.Excel;Excel.Application tmpExcel = new Excel.ApplicationClass();Excel.Workbook tmpbook = tmpExcel.Workbooks.Open(tmppath, Type.Missing, Type.Missi原创 2012-02-03 15:18:10 · 6632 阅读 · 1 评论 -
c#中分页打印(预览)HasMorePages的用法心得
心得一:int ii = 0;public void PrintReport(object sender, System.Drawing.Printing.PrintPageEventArgs e){ if (ii { Font font = new Font("宋休", 12 + 30 * ii); e.Graphics.Dr原创 2012-01-01 08:44:02 · 5757 阅读 · 0 评论