Developer's Guide for ASP Barcode
Control
(A C-to-VB-to-Pasic
Type Comparison)
Property
| Name |
Value |
Apply to |
Description |
Note |
| Alignment | 0 to 2 | 2D Symbol | Returns/sets the algnment of the barcode symbol and text. | 0 = Left Justify 1 = Right Justify 2 = Center |
| AutoScale | Bool | MaxiCode | Returns/sets a value that detemines whether the bar code symbol automatically scaled. | When this property is True, the barcode will calculate the size of the
barcode based on the pixels per millimeter of the device that the barcode
is being painted on. If the scaling of the control needs be done manually, setting AutoScale to False and either specifying BarHeight and BarWidth or HorPixelsPerMM and VerPixelsPerMM. |
| BackColor | Long | All | Returns/sets the background color used to display text and graphics in an object. | |
| BarCodeHeight | Long | 2D Symbol | Returns the height of the data area of the barcode. | |
| BarHeight | Long | 2D Symbol | Returns/sets the height of a single element. | In PDF417, if RelativeBarHeight is False
and BarHeightToWidth is zero, this value
will be used to determine the bar height in pixels. In MaxiCode, this value will be used to calculate the size of a hexagon when AutoScale is False. |
| BarHeightToWidth | Long | PDF417 | Returns/sets the ratio of the bars in barcode. | This value sets the height of a single row in relation to the width of
the narrowest bar. If RelativeBarHeight is True, this property will be ignored. |
| BarSpaceRatio | Long | 1D Symbol | Returns/sets the ratio of bar and space width. | This property is not used by Code 11, Code 39, Code 93, Code 128 and Interleaved 2 of 5. |
| BarWidth | Long | All | Returns/sets the width of the narrow bar in a symbology. | This value is given in mils (thousandths of an inch). |
| CheckChar | Long | 1D Symbol | Returns the check char of symbol. | |
| CheckChar2 | Long | Code 11 Code 93 |
Returns the another check char of code 11 or code 93 symbol. | |
| ClearArea | Long | 2D Symbol | Returns/sets the clear area size around the bar code. | The clear area is an area around the barcode in which no data is written.
This area allows for scanners to determine the size of the barcode. For PDF417, this size should be a minimum of 2 times the BarWidth. For MaxiCode, this size should be a minimum of either 1/33 of the BaCodeHeight or 1/30 of the BarCodeWidth, whichever is larger. |
| Code128Sub | Long | Code 128 | Returns/sets the sub set of code 128 symbol. | 0 = Code 128A |
| CodeType | Long | 1D Symbol | Returns/sets the selection of the desired bar code format. | For linear control, 0 = UPC A, 1 = UPC E, 2 = EAN 8, 3 = EAN 13, 4 = Interleaved 2 of 5, 5 = Codabar, 6 = Code 11, 7 = Code 39, 8 = Code 93, 9 = Code 128. For EAN control, 0 = EAN 8, 1 = EAN 13. For UPC control, 0 = UPC A, 1 = UPC E. |
| Columns | Long | PDF417 | Returns/sets the number of columns in the barcode. | |
| CountryCode | Long | MaxiCode | Returns/sets the country code to be used in mode 2 and mode 3 barcodes. | The current list of country codes can be found on here. |
| Data | String | All | Returns/sets the data that is displayed as the bar code symbol. | |
| ECCLevel | 0 to 9 | PDF417 | Returns/sets the error correction level used by the barcode. | 0 = Auto 1 = Level 0, 2 = Level 1, ..., 9 = Level 8 |
| ExtendedSyntax | Bool | 2D Symbol Code128 |
Returns/sets a value that determines whether the extended syntal used in the bar code data. | See extended syntax |
| Font | String | All | Returns a Font name. | |
| ForeColor | Long | All | Returns/sets the foreground color used to display text and graphics in an object. | |
| Height | Long | All | Returns/sets the height of jpeg image. | |
| HorPixelsPerMM | Long | MaxiCode | Returns/sets the horizontal pixels per millimeter. | If AutoScale is False and BarWidth
is non-zero, this value will be used to specify the width of a single hexagonal
element in pixels. If AutoScale is False and BarWidth is zero, HorPixelsPerMM will be used to determine the size of the barcode. |
| JPEGQuality | 1 to 100 | All | Sets the compression quality of the JPEG image | The higher the JPEGQuality value (up to a maximum of 100), the better the image quality, but the larger the file size. The lower the JPEGQuality value (to a minimum of 1), the smaller the resulting file size, but at the expense of picture quality. |
| Mode | 0 to 4 | MaxiCode | Returns/sets the error correction level and type of data encoded in the barcode. | 0 = Mode 2: structured carrier message with numeric postalcode. 1 = Mode 3: structured carrier message with alphanumeric postal code. 2 = Mode 4: standard symbol with standard error correction. 3 = Mode 5: standard symbol with enhanced error correction. 4 = Mode 6: reader programming. |
| PostalCode | String | MaxiCode | Returns/sets the postal code to be used in mode 2 and mode 3 barcodes. | Postal code can either be nine numeric digits or six alphanumeric characters. The mode will be changed automatically to adapt PostalCode code type. |
| RelativeHeight | Bool | 2D Symbol | Returns/sets a value that detemines whether automatically adjusts bar height to the size of | When this valuse is True, the bar height is calculated based on the available area in the control. |
| Rows | Long | PDF417 | Returns/sets the number of rows in the barcode. | |
| ServiceClass | Long | MaxiCode | Returns/sets the service class used in mode 2 and mode 3 barcodes. | The service class is a three digit numeric value that is determined by the carrier. |
| ShowCode | Bool | 1D Symbol | Returns/sets a value that determines whether the readable text is visible or hidden. | |
| SupplementalCode | String | 1D Symbol | Returns/sets a value of the supplemental code. | This property can either be two or five numeric digits. It's applies to UPC and EAN symbologies only. |
| TallGuardBars | Bool | 1D Symbol | Returns/sets a value that determines whether the guard bars are drawn taller than the normal | If this valuse is True, the guard bars in symbol are drawn longer than the normal bars. |
| Text | String | 2D Symbol | Returns/sets the text contained in the control. | Descriptive text used for 2D symbol. |
| TextPosition | 0 to 2 | 2D Symbol | Returns/sets the text positions in relation to the barcode. | 0 = Top 1 = Middle 2 = Buttom |
| Truncated | Bool | PDF417 | Returns/sets a value that detemines whether truncated PDF417 mode is used. | Truncated PDF417 reduces the amount of space required for the barcode by removing the right hand indicators and by reducing the stop pattern to a single bar. It should be used in situations where the label is unlikely to be damaged. |
| VerPixelsPerMM | Long | MaxiCode | Returns/sets the vertical pixels per millimeter. | Similar to HorPixelsPerMM. |
| Width | Long | All | Returns/sets the width of jpeg image. | |
| Name |
Value |
Apply to |
Description |
Note |
Procedure/Function
| Prototype |
Return value |
Apply to |
Description |
Note |
| SaveToFile(FileName as String) | None | All | Save the bar code symbol to jpeg file. | |
| Show() | None | All | Returns the bar code symbol as jpeg file. | |
| Prototype |
Return value |
Apply to |
Description |
Note |