VpeRenderMaxiCodeEx

<< Click to Display Table of Contents >>

Navigation:  Barcode Functions (2D) >

VpeRenderMaxiCodeEx

Previous pageReturn to chapter overviewNext page

[Professional Edition and above only]

Computes the dimensions of a MaxiCode barcode.

void VpeRenderMaxiCodeEx(

VpeHandle hDoc,

int nMode,

LPCTSTR lpszZip,

int nCountryCode,

int nServiceClass,

LPCTSTR lpszMessage,

int nSymbolNumber,

int nSymbolCount

)

VpeHandle hDoc

Document Handle

int nMode

Modes define the structuring of data and error correction within a symbol.

Value

Description

0

Obsolete

1

Obsolete

2

Structured Carrier Message. Encode the destination address and class of service in the transport industry. Mode 2 supports up to nine numeric digits for the ZIP code.

3

Similar to mode 2. Supports up to six alphanumeric characters for ZIP code.

4

Standard Symbol (for details refer to AIM specification)

5

EEC (for details refer to AIM specification)

6

Reader Programming (for details refer to AIM specification)

LPCTSTR lpszZip

Postal code, for example D40211 or 42119

int nCountryCode

ISO 3166 country code (for example 276 for Germany)

int nServiceClass

Carrier-dependent service class

LPCTSTR lpszMessage

Secondary message

int nSymbolNumber

Total number of symbols (structured append)

int nSymbolCount

Current number of symbol (structured append)

Remarks:

The width, height and module width of the MaxiCode barcode are fixed. You can not specify these parameters.

Sets LastError.

Example:

VpeMaxiCodeEx(hDoc, 1, 11, -5, -5, 2, "068107317", 840, 001,"AOE This is MaxiCode AOE", 1, 1)

xsize = VpeGet(hDoc, VRENDERWIDTH)

ysize = VpeGet(hDoc, VRENDERHEIGHT)

 

See also:

"Barcodes (2D)" in the Programmer's Manual