GetBarcodeWidthA
Vector graphics, Page layout
Description
The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to GetBarcodeWidth and string arguments are interpreted using the current SetAnsiMode code page
Returns the total width of a barcode based on the width of the smallest bars in the barcode.
Syntax
Delphi
Function DLGetBarcodeWidthA(InstanceID: Integer; NominalWidth: Double; Text: PAnsiChar; Barcode: Integer): Double;
DLL
double DLGetBarcodeWidthA(int InstanceID, double NominalWidth, const char * Text, int Barcode);
Parameters
| NominalWidth | The desired width of the narrowest bars in the barcode The barcode data |
|---|---|
| Text | 1 = Code39 (or Code 3 of 9) 2 = EAN-13 3 = Code128 4 = PostNet 5 = Interleaved 2 of 5 |
| Barcode |