Bar2Dc

Calls to Bar2Dc may be made directly from Visual Basic (version 5 or later), with the Barcode2D structure containing the barcode parameters. The metafile picture image is formed on the Windows Clipboard, and may be passed to a Picture/Image using

Int WINAPI Bar2Dc(LPRECT rc, LPBAR2D bc)

Where

rc is the RECT structure that will contain the image

bc is the BARCODE2D structure containing the barcode details.

Image1.Picture=Clipboard.GetData(vbCFMetafile)

More:

Bar2Df