Importing A Barcode From A Image File Follow

0
Avatar
Legacy Poster

Hello,

 

I need to create Datamatrix barcodes dynamically in our application. As far as I have understood Barcode SDK does not have any API's to do this so I am using DevExpress library to do this. My question is how can I import a .NET Image object into the printer class and sent it to the printer.

 

 

thanks,

 

Ehsan

EPM Technology

5 comments

0
Avatar
Domingo Rodriguez
Moderator
Comment actions Permalink

Hello,

 

Do you use BarTender at all? BarTender supports encoding binary data into a Data Matrix bar code. You would do this by using escape sequences in the data (in particular, you will need to make use of the ^dnnn

escape sequence, where nnn represents a 3-digit ASCII codeword).

 

As an example, the below data will encode binary information into your Data Matrix bar code:

 

^d003^d001^d220^d120^d012^d000^d048^d055^d049^d077^d150^d183^d009^d000^d
194^d230^d040^d001^d000^d040^d010^d000^d183^d220^d050^d001^d145^d023^d00
0^d000^d042^d051^d101^d047^d000^d097^d103^d001^d000^d000^d000^d156^d228^
d001^d000^d017^d096^d000^d000^d008^d011^d000^d000^d236^d218^d199^d225^d0
25^d157^d170^d070^d198^d053^d233^d060^d015^d151^d238^d195^d046^d022^d098
^d203^d068^d066^d045^d048^d046^d254^d229^d146^d042^d187^d032^d004^d138^d
084^d177^d004^d091^d231^d078^d154^d000^d250^d050^d176^d004^d008^d000^d14
5^d023^d000^d000

 

If you would be printing via our .NET SDKs, you can set the binary data for your variable bar code by using the above recommended approach.

0
Avatar
Legacy Poster
Comment actions Permalink

Thanks for the reply, but I do not understand what you mean. Which API must I use? 

0
Avatar
Domingo Rodriguez
Moderator
Comment actions Permalink

You would first design your label and Data Matrix bar code by using BarTender, and you could then programmatically control BarTender in the background by making use of our .NET SDKs, which are available in the Automation Editions of BarTender: http://www.bartenderbarcodesoftware.com/label-software/whitepapers/Controlling-Barcode-Label-Software-using-C-Sharp-and-VB.NET(English).pdf

0
Avatar
Legacy Poster
Comment actions Permalink

I cannot use BarTender to design the barcode, each barcode will be created at run time using the information given by the user. 

0
Avatar
Michael Toupin (mtoupin
Comment actions Permalink

I cannot use BarTender to design the barcode, each barcode will be created at run time using the information given by the user. 

 
That's exactly what BarTender is for.  What you have to do is create a sample barcode, just to specify the layout etc, then in your application tell it to pass the information submitted by the user into the label format, either by using share names or by using a database.  That will allow you to dynamically generate the barcode exactly the same as you would to create dynamic text fields. 
 
 
If you follow the link that Domingo sent above, it does talk about the functional capabilities of the SDK, you can also look in the BarTender help for more information on the different ways to pass information into a label.

Please sign in to leave a comment.