09.01.2013 Views

TBarCode OCX - TEC-IT Datenverarbeitung GmbH

TBarCode OCX - TEC-IT Datenverarbeitung GmbH

TBarCode OCX - TEC-IT Datenverarbeitung GmbH

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

2.3.1.3 Create Barcode Bitmap Function<br />

CreateBarcodeBitmap()<br />

// set temp file name<br />

<strong>TBarCode</strong> <strong>OCX</strong> Navision Tutorial<br />

FileNameBmp := 'C:\Windows\Temp\TecItBitmap.bmp';<br />

BC.Refresh;<br />

// create linear (1D) barcode of type Code 128<br />

BC.BarCode := 20; // set bar code type to Code 128<br />

BC.EscapeSequences := TRUE; // decode Escape sequences in input data<br />

BC.Text := TA; // set bar code data<br />

// get optimum bar code width (Pixels) for linear code types<br />

pxWidth := BC.CountModules;<br />

pxHeight := 96; // height in Pixels (96 = 23.81 mm)<br />

// create 2D barcode of type PDF417<br />

BC.BarCode := 55; // set bar code type to PDF417<br />

BC.EscapeSequences := TRUE; // decode Escape sequences in input data<br />

BC.Text := TA; // set bar code data<br />

// get optimum bar code width (Pixels) for PDF417 code types<br />

pxWidth := ROUND( ( BC.CountModules / BC.CountRows ),1,'

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!