1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| 'Declaring a BarTender application variable
Dim btApp as BarTender.Application
'Declaring a format variable
Dim btFormat As New BarTender.Format
'Instantiating the BarTender object
btApp = new BarTender.ApplicationClass
'Setting the BarTender Application Visible
btApp.Visible = True
'Setting the BarTender format to open
btFormat = btApp.Formats.Open("c:\Format1.btw", False, "")
'Printing the label format
btFormat.PrintOut(False, False)
'Ending the BarTender process
btApp.Quit(BarTender.BtSaveOptions.btDoNotSaveChanges |
Partager