摘要:
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... 阅读全文
摘要:
C#打印,不显示打印进度的对话框 PrintDocument pd = new PrintDocument(); //隐藏 对话框 PrintController printController = new StandardPrintController(); pd.PrintController = printController; //创建打印画布 Graphics g = pd.PrinterSettings.CreateMeasurementGraphics(); g.DrawImage(image,0,0); pd.Print(); 阅读全文