Display Label Design On Screen Follow

0
Avatar
Legacy Poster

Hi

 

I need to load a label design file, fill it with data and display it on screen before printing.

Could anybody tell me if this is possible using automation and if so some pointers in the right direction.

 

Thanks in advance

Jonathan Attree

1 comments

0
Avatar
Fernando Ramos Miracle
Moderator
Comment actions Permalink

Hello jonattree,

 

This is certainly possible using our .NET SDks:

 

1. To enter data to a label you could use the SubString class, for example:

 

Dim btEngine As New Engine() 
Dim btFormat As LabelFormatDocument = btEngine.Documents.Open("c:\MyLabel.btw")
btFormat.SubStrings("Address").Value = "1313 Mockingbird Lane, Anywhere, USA"
btFormat.SubStrings("Name").Value = "John Doe"
btFormat.SubStrings("Quantity").Value = "10"
 
2. To display it on screen you would need to generate a preview of the label with the data already loaded and use your application to show that image on screen. to get the preview you could use one of the following two methods:
 
ExportPrintPreviewToFile exports a print preview of the label.
 
ExportImageToFile exports a thumbnail image.
 

*Note that you'll find further information and examples in BarTender's Help documentation.

 

In any case, wouldn't it be easier to use our Print Station application that already has this functionality implemented? For more information please take a look at the below white papers:

http://www.bartenderbarcodesoftware.com/label-software/whitepapers/WhitePaper_WhatsNewInBT92.pdf#PrintStation.pdf

 

Regards.

Please sign in to leave a comment.