|
|
@@ -221,8 +221,8 @@ namespace UAS_MES.Make
|
|
|
return;
|
|
|
}
|
|
|
//判定通过进行打印
|
|
|
- doc = lbl.Documents.Open(PrintLabel.Text);
|
|
|
- if (Print.CodeSoft(Tag.ToString(), doc, PrintLabel.Text, PrintLabel.SelectedValue.ToString(), Printer.Text, inputValue.Text, int.Parse(printNum.Text), ms_makecode.Text, pr_code.Text, giftBox.Checked ? "彩盒标" : "机身标", "-1", out errorMessage))
|
|
|
+ //doc = lbl.Documents.Open(PrintLabel.Text);
|
|
|
+ if (Print.CodeSoft(Tag.ToString(), ref lbl, PrintLabel.Text, PrintLabel.SelectedValue.ToString(), Printer.Text, inputValue.Text, int.Parse(printNum.Text), ms_makecode.Text, pr_code.Text, giftBox.Checked ? "彩盒标" : "机身标", "-1", out errorMessage))
|
|
|
{
|
|
|
//按照打印张数打印
|
|
|
OperateResult.AppendText("<<打印成功\n", Color.Green);
|
|
|
@@ -253,8 +253,8 @@ namespace UAS_MES.Make
|
|
|
OperateResult.AppendText("<<箱号:" + inputValue.Text + "错误,不存在\n", Color.Red);
|
|
|
return;
|
|
|
}
|
|
|
- doc = lbl.Documents.Open(PrintLabel.Text);
|
|
|
- if (Print.CodeSoft(Tag.ToString(), doc, PrintLabel.Text, PrintLabel.SelectedValue.ToString(), Printer.Text, inputValue.Text, int.Parse(printNum.Text), ms_makecode.Text, pr_code.Text, "卡通箱标", "-1", out errorMessage))
|
|
|
+ //doc = lbl.Documents.Open(PrintLabel.Text);
|
|
|
+ if (Print.CodeSoft(Tag.ToString(), ref lbl, PrintLabel.Text, PrintLabel.SelectedValue.ToString(), Printer.Text, inputValue.Text, int.Parse(printNum.Text), ms_makecode.Text, pr_code.Text, "卡通箱标", "-1", out errorMessage))
|
|
|
{
|
|
|
//判断通过,打印
|
|
|
OperateResult.AppendText("<<打印成功\n", Color.Green);
|