Component properties.

The properties that can be set to generate an image

Abcnet1.AutoCheckdigit       specifies whether any check digits are calculated automatically

Abcnet1.BackColor    the colour behind the bars

Abcnet1.BarRatio      specifies the ratio of wide/narrow bar for some barcode types

Abcnet1.BarcodeHeight        required target height of barcode image (in units determined by the setting of the Unit property)

Abcnet1.BarcodeWidth         required target width of barcode image (in units determined by the setting of the Unit property)

Abcnet1.BearerSize  specifies the thickness of bearer bars for those barcodes that may have bearer bars

Abcnet1.BorderWidth specifies the thickness of any border around the image

Abcnet1.BothBearers  determines whether both upper and lower bearer bars are displayed

Abcnet1.Caption       specifies the characters that make up the code

Abcnet1.CodeType    specifies the barcode type required

Abcnet1.ExtendBearers       Allows bearer bars to extend into light margins.

Abcnet1.ForeColor    the colour of the bars and any text under the bars

Abcnet1.Font  The font used to render any text under the barcode

Abcnet1.Indicators  specifies whether light margin indicators should be displayed for those barcode types that support these. Not that the prefix and suffix digits of UPC barcodes and the prefix digit of EAN-13 and EAN-8 barcodes are regarded as light margin indicators for this purpose.

Abcnet1.MarginSize   specifies the size of the light margins

Abcnet1.Orientation   specifies the orientation angle of the barcode image

Abcnet1.Mirror         specifies that a mirror image of the symbol is created

Abcnet1. Reduction   specifies the percentage reduction in bar thickness (useful for allowing for ink spread in wet-ink printing processes.

Abcnet1.ShowText    specifies that the text content of the barcode should be displayed under the bars

Axbarcode.ShowCheckdigit  specifies whether any automatic check digit is displayed (for those barcode type which permit this)

Abcnet1.TextAlign     specifies the text justification for human readable text under the barcode

Abcnet1.Xunit          specifies the thickness of each barcode element in mils (1/1000 inches)

 

Many of these properties have default values (see the reference section), so do not require changing if you can make do with the default values. The properties that must be set for you to obtain a barcode are

Abcnet1.CodeType    specifies the barcode type required

Abcnet1.Caption       specifies the characters that make up the code

A typical example of setting these properties is:

Abcnet1.CodeType=Code_39

Abcnet1.Caption="123456"

 

The following Information properties are available after calls to the Barcode() method.

Abcnet1.Error an error code which is non zero if an error has occurred in generating the barcode image.

Abcnet1.ImageHeight the height of barcode picture generated (in units determined by the setting of the PageUnit property of the Graphics object passed into the component)

Abcnet1.ImageWidth the width of barcode picture generated (in units determined by the setting of the PageUnit property of the Graphics object passed into the component)

Abcnet1.Pattern        a pattern string containing 1s and 0s representing the bars and spaces respectively for the barcode symbol (see Pattern details for clocked code variants).

Abcnet1.Status         a string interpretting the error code produced when generating the barcode image.

Abcnet1.String2        the barcode content in text form (including any automatically calculated check digit).

 

More:

Component methods