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