Component properties.

The properties that can be set to generate an image

Axbarcode1.AutoParity        specifies whether any check digits are calculated automatically

Axbarcode1.BackColor         the colour behind the bars

Axbarcode1.BarRatio specifies the ratio of wide/narrow bar (times ten) for some barcode types

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

Axbarcode1.BearerBarThickness  specifies the thickness of bearer bars for those barcodes that may have bearer bars

Axbarcode1.BorderSize       specifies the thickness of any border around the image (in points)

Axbarcode1.Caption  specifies the characters that make up the code

Axbarcode1.CharSpacing     the percentage of the barcode width over which the text under the barcode should be spread out.

Axbarcode1.CodeType         specifies the barcode type required

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

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

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

Axbarcode1.FontSize, FontName, FontBold, FontItalic are alternative ways of specifying font characteristics

Axbarcode1.ImageHeight     required target height of barcode image (in units determined by the setting of ScaleMode)

Axbarcode1.ImageWidth      required target width of barcode image (in units determined by the setting of ScaleMode)

Axbarcode1.JustifyText       specifies the text justification for human readable text under the barcode

Axbarcode1.MarginSize        specifies the size of the light margins

Axbarcode1.NominalSize      specifies a percentage of the barcode's standard size at which the image should be created. If specified the calculated value overrides the ImageHeight and ImageWidth parameters.

Axbarcode1.Orientation       specifies the orientation of the barcode image

Axbarcode1.PictureHeight     the height of barcode picture generated (in units determined by the setting of ScaleMode)

Axbarcode1.PictureWidth     the width of barcode picture generated (in units determined by the setting of ScaleMode)

Axbarcode1.ScaleMode        specifies the units of ImageHeight and ImageWidth and PictureHeight and PictureWidth parameters (default is 6 = mm)

Axbarcode1.ShowBearerBars  determines whether (or how many) bearer bars are displayed

Axbarcode1.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)

Axbarcode1.ShowLightMargin  specifies whether light margin indicators should be displayed for those barcode types that support these

Axbarcode1.TargetHdpi        Target device horizontal resolution (in dpi) for bitmap based images

Axbarcode1.TargetVdpi        Target device vertical resolution (in dpi) for bitmap based images

Axbarcode1.xunit               specifies the thickness of each barcode element in mils

 

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

Axbarcode1.CodeType         specifies the barcode type required

Axbarcode1.Caption  specifies the characters that make up the code

A typical example of setting these properties is:

Axbarcode1.CodeType=8     rem code type is 8 for Code-39 type barcode

Axbarcode1.Caption="123456"     rem code is 123456

 

More:

Methods of using the barcode image