Ejemplo n.º 1
0
 /// <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;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 初始化标签打印
 /// </summary>
 /// <param name="LabelPrintInfo">标签信息</param>
 public LabelPrint(LabelPrintModel LabelPrintInfo) : this(LabelPrintInfo, "打印标签")
 {
 }