摘要: C# 自定义打印类,可以实现打印文本、线条、图片等,以下仅仅是举例代码:public class PrintInfo { public string PortName { get; set; } public string DepartureTime { get; set; } public string AMPM { get; set; } PrintDocument document = new PrintDocument(); private int pageWidth = 302; privat... 阅读全文
posted @ 2013-03-11 17:18 IT爱好者 阅读(2404) 评论(4) 推荐(0) 编辑
摘要: C#打印,不显示打印进度的对话框 PrintDocument pd = new PrintDocument(); //隐藏 对话框 PrintController printController = new StandardPrintController(); pd.PrintController = printController; //创建打印画布 Graphics g = pd.PrinterSettings.CreateMeasurementGraphics(); g.DrawImage(image,0,0); pd.Print(); 阅读全文
posted @ 2013-03-11 17:09 IT爱好者 阅读(2528) 评论(0) 推荐(0) 编辑