16,555
社区成员
发帖
与我相关
我的任务
分享
Public Sub LabelPrint(ByVal strLabelFile As String)
Dim BarTenderApp As New BarTender.ApplicationClass
BarTenderApp.Formats.Open(Application.StartupPath & "\" & strLabelFile)
BarTenderApp.Formats.Item(0).PrintOut(True)
BarTenderApp.Quit(BarTender.BtSaveOptions.btDoNotSaveChanges)
End Sub
public void LabelPrint(string strLabelFile)
{
BarTender.ApplicationClass BarTenderApp = new BarTender.ApplicationClass();
BarTenderApp.Formats.Open(Application.StartupPath + "\\" + strLabelFile);
BarTenderApp.Formats.Item(0).PrintOut(true);
BarTenderApp.Quit(BarTender.BtSaveOptions.btDoNotSaveChanges);
}