LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

bar code

Is there a way to create a bar code in a report
Like the program bar tender ?
0 Kudos
Message 1 of 4
(3,388 Views)
Erez,

To print barcodes all you need is to set a font that draws the barcodes instead of the characters. You can probably find this font on-line; you would do something like this:

Err(NIReport_New (&per));
Err(NIReport_AppendText (per, "This is a barcode in a report:\n"));
Err(NIReport_SetTextAttribute (per, NIR_TEXT_ATTR_FONT_NAME, "IDAutomationSCBL"));
Err(NIReport_AppendText (per, "This is a barcode in a report:\n"));
Err(NIReport_Print (per, NULL, 1));
Err(NIReport_Discard (per));

Where "IDAutomationSCBL" is the font that prints the barcodes. Just remember that if you are distributing this application you'll need tho have this font in the target machine.

I hope this helps.

Regards,

Juan Carlos
N.I.
Message 2 of 4
(3,388 Views)
Erez_Farhi wrote in message news:<506500000008000000EAB50000-1068850981000@exchange.ni.com>...
> Is there a way to create a bar code in a report
> Like the program bar tender ?


Use a barcode font. Take a look at http://www.morovia.com/font/
0 Kudos
Message 3 of 4
(3,388 Views)
Thanks
0 Kudos
Message 4 of 4
(3,388 Views)