Error codes

The Property AbcDl71.ErrorCode AFTER AbcDl71.Caption has been set may contain an error code if the component was unable to generate a barcode Picture. The error code returned by many of the API calls and the corresponding value of the Barcode structure’s errorcode member will also be one of the values shown in the table below.

0        No error
1        Wrong code length
2        Unrecognised code type
3        Wrong add-on code length
4        Illegal character in code
5        Error in embedded code
6        Generated line width less than 1 unit
7        Invalid text font
8        Invalid device context
9        Invalid Caption property

 

More:

A Note on Metafile pictures