OLE Automation allows dBarcode Pro to be programmed from other applications, such as Microsoft Visual Basic 6. dBarcode provides several functions which may be called from other applications (one of which returns the bacode metafile image through the Windows clipboard), and a number of variables which may be set to specify properties of the barcode image, or retrieved to determine characteristics of the image.
The dBarcode functions provided for OLE automation are:
short dBarInit();
short dBarCopy();
short
dBarCopyBitmap();
short dBarMake();
short dBarMakeCode(codestring);
short
dBarOpen(filename);
short dBarSave(filename);
short dBarDefs();
short
dBarSaveImage(filename);
while the variables used for setting the properties of the barcode image are summarised in the table on the next page and described in detail below.
Most users will probably find it helpful to examine the sample programs provided on the distribution disk while reading the descriptions below.
|
type |
name |
purpose |
|
short |
m_icode |
code type identifier |
|
short |
m_ishowtext |
include text flag |
|
short |
m_iautoparity |
automatic parity digit flag |
|
short |
m_iorientation |
image orientation indicator |
|
short |
m_ishowcheck |
show check digit flag |
|
short |
m_iborderthick |
image border thickness (points) |
|
short |
m_ilinereduce |
bar thickness reduction (%) |
|
short |
m_ifontheight |
text font height (points) |
|
short |
m_ifontbold |
bolf font flag |
|
short |
m_ifontitalic |
italic font flag |
|
short |
m_ierror |
Error code return |
|
short |
m_iextra1/2 |
Additional property settings |
|
short |
m_ilength |
image length |
|
short |
m_iheight |
image height |
|
short |
m_iPixelGain |
Bitmap resolution |
|
short |
m_irequired |
characters required by code type |
|
short |
m_inominalsize |
nominal size flag |
|
short |
m_imargins |
margin indicator flag |
|
short |
m_ibearers |
horizontal bearer bars flag |
|
short |
M_iPixelGain |
Barcode size multiplier for generation of bitmap images. |
|
short |
m_ispacing |
character spacing (% of length) |
|
short |
m_itransparent |
transparent background flag |
|
short |
m_ixunit |
the X unit dimension in mils |
|
short |
m_iBarRatio |
Wide/narrow bar ratio times 10 |
|
long |
m_lforecolor |
bar colour (RGB value) |
|
long |
m_lbackcolor |
background colour (RGB colour) |
|
CString |
m_scode |
code for conversion to barcode |
|
CString |
m_sfontname |
name of font for text |
|
CString |
m_spattern |
0/1 pattern returned |
More: