New To Bartender -- Type Engine Is Not Defined Error
I have been tasked with updating a vb6 application BT 7.75 version. We are purchasing version 10.1 (downloaded the latest version of the web today). Created a VB2012 windows form application
added the reference to point to bartender print library. Coped in this code
using btEngine as new Engine(true)
dim btFormat as LabelFormatDocument = btEngine.Documents.Open("C"\Format1.btw")
btFormat.Print
btEngine.Stop
End Using
Getting "type engine is not defined error". Can someone point me in the right direction as to what is causing this error. Also is there a VB.net windows forms example somewhere I can use as a model on how to print labels using VB.net 2012 and BarTender 10
Thanks
Ron
-
When installing BarTender, you can mark the ".NET SDK" component to be installed. You will find some VB.NET samples under "C:\Program Files (x86)\Seagull\BarTender Suite\SDK".
You also have a full reference on the .NET SDK programming by opening BarTender's Help by pressing the F1 key.
As a very simple programming example, see below:
Using btEngine As New Engine()
btEngine.Start()
Dim btFormat As LabelFormatDocument = btEngine.Documents.Open("c:\MyLabel.btw")
End Using
0
请先登录再写评论。
评论
1 条评论