示例#1
0
文件: Print.cs 项目: 1988wj/Invoice
 /// <summary>
 /// 初始化标签打印
 /// </summary>
 /// <param name="LabelPrintInfo">标签信息</param>
 /// <param name="name">显示在打印列表中的名称</param>
 public LabelPrint(LabelPrintModel LabelPrintInfo, string name)
 {
     labelInfo = LabelPrintInfo;
     pDocument = new PrintDocument();
     pDocument.DefaultPageSettings.PaperSize = labelInfo.纸张尺寸;
     pDocument.DocumentName = name;
     pDocument.PrintPage   += Express_PrintPage;
 }
示例#2
0
文件: Print.cs 项目: 1988wj/Invoice
 /// <summary>
 /// 初始化标签打印
 /// </summary>
 /// <param name="LabelPrintInfo">标签信息</param>
 public LabelPrint(LabelPrintModel LabelPrintInfo) : this(LabelPrintInfo, "打印标签")
 {
 }