The properties that can be set to generate an image
Abcnet1.BackColor the colour behind the bars
Abcnet1.BarRatio specifies the ratio of wide/narrow bar for some barcode types
Abcnet1.BorderWidth specifies the thickness of any border around the image
Abcnet1.Caption specifies the characters that make up the code
Abcnet1.CodeType specifies the barcode type required
Abcnet1.ForeColor the colour of the bars and any text under the bars
Abcnet1.Orientation specifies the orientation angle of the barcode image
Abcnet1. Reduction specifies the percentage reduction in bar thickness (useful for allowing for ink spread in wet-ink printing processes.
Abcnet1.StartMode the starting mode for the 2D barcode
Abcnet1.Xunit specifies the thickness of each barcode element in mils (1/1000 inches)
Some barcode types have the following additional properties:
Abcnet1.Columns the target number of columns for Datamatrix, PDF417 or Databar symbols
Abcnet1.SecurityLevel the security or level of the barcode (generally related the the fraction of the barcode devoted to error correction elements
Abcnet1.Ymultiplier the height of a barcode element specified in Xunits
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=PDF417
Abcnet1.Caption="1234567890"
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.
More: