16,722
社区成员




textBox1.Text = Application.StartupPath & "\" & txtLaxFileFullName.Text.Trim()
If Not IsNumeric(txtPrintSetup.Text) Then
Throw New Exception("打印份數出錯")
End If
printSetup = txtPrintSetup.Text
If Not FileIO.FileSystem.FileExists(textBox1.Text) Then
Throw New Exception("打印模板不存在")
End If
If InterfaceOperator.HY_OpenLax(textBox1.Text) Then
InterfaceOperator.HY_SetVariable("barcode", txtVarWord.Text.Trim(), "A", "B") '
InterfaceOperator.HY_SetVariable("T文字2", txtVarBarcode.Text.Trim(), "a", "c") '
InterfaceOperator.HY_Print(printSetup, txtPrinterName.Text.Trim(), cbPageWindowsShow.Checked) '《--------------這句報錯
Else
Throw New Exception("模板打開失敗")
End If