ActiveX Support | Common Problems and Solutions

ActiveX Error Message ‘There is no Object in this Control’

The error message, or inability to change the properties of the ActiveX barcode control is usually an indication that the barcode control was not registered or became corrupted during the installation process. This error can also pop up when there are multiple controls installed on the PC, for example if the demo was downloaded prior and not removed before installing the licensed version.

To fix this issue, remove the control box from the application, remove all instances of the control from the PC, delete all files in the %temp% folder, reboot the PC, reinstall and register the barcode control. After this is completed, add the control back to the application.

BarcodeNDimension has no effect on a Low Resolution Printer

The BarcodeNDimension, also known as the X dimension, can only be adjusted according to the DPI of the printer being utilized. Values that are not compatible will be adjusted to the closest possible X dimension automatically.

Refer to the chart below to set the X dimension to create the same size barcodes on 203DPI and above printers:

Printer dots MILS CM Barcode Font Point Size
1 5 .013 6
2 10 .026 12
3 15 .039 18
4 20 .052 24
5 25 .065 32

Barcodes created with ActiveX control not scannable in IE11 and above

IE11 does not support classic ASP setup, instead of the ActiveX control in this scenario, we recommend the ASPX Barcode Generator for multi-browser compatibility.

ActiveX Properties

The following properties can be changed to set the barcode output that is desired.

General ActiveX Control Properties
Property Default Value Description
BarcodeTextToEncode 123456789012 This is the text that is encoded in the barcode. When the control is bound to a data source, this field is overwritten.
BarcodeSymbology Code128 The type of barcode to create. When using UPC and EAN barcode types, the BarcodeLeftMargin must be increased to .04 or more.
BarcodeBarHeight 0.5 inches The height of the bars in the barcode.
BarcodeXDimension 12 mils The width of the bars in the barcode.
BarcodeNDimension 3 The narrow to wide ratio of applicable barcode types such as Code 39 and ITF.
BarcodeCheckDigit TRUE When true, a check digit will be calculated and added to the barcode. This symbology option is only applicable to Code 39, ITF, Planet and Postnet.
BarcodeCheckDigitInText TRUE Includes the check digit in the text interpretation.
BarcodeTopMargin .01 inches The top and bottom quiet zones.
BarcodeLeftMargin .01 inches The left and right quiet zones. This must be increased to .04 or more for UPC and EAN barcode types.
BarcodeOrientation 0 Degrees The orientation angle of the symbol.
UPCEEncoding 0 The encoding system used for UPC-E.
DataMatrix ActiveX Control Properties
DataToEncode na The text or binary data to be encoded.
EncodingMode BASE256 Determines the method used to encode data, which may reduce symbol size depending on the data that is encoded:
C40 – encodes uppercase letters and numbers best
Text – encodes text characters best
ASCII – encodes ASCII characters best
BASE256 – encodes bytes of data (Default)
FixedResolutionCM 0 Determines the resolution the symbol is drawn to. Leave this at the default setting of 0 which is automatic resolution mode.
Margin 0.1 The margin around the symbol.
Orientation 0 The orientation of the symbol.
PreferredFormat Auto Determines the smallest symbol size. However, if the data encoded creates a larger symbol, the size will automatically increase.
ProcessTilde No If enabled, ~d??? will be converted to an ASCII character where ?? ? is a 3 digit number. For example, ~d009 may be used for a tab function and ~d013 for a return.
XDimension 30 The X Dimension in MILS where 1 MIL equals 1/1000 of an inch.
PDF417 ActiveX Control Properties
Columns 3 The number of columns in the symbol. Generally, 10 to 15 is a good number to use when increasing the data above 20 characters.
DataToEncode  NA The text or binary data to be encoded.
ErrorCorrectionLevel 2 The level of error correction in the symbol. A larger number will allow damaged symbols to be read easier and increase symbol size.
FixedResolutionCM 0 Determines the resolution the symbol is drawn to. Leave this at the default setting of 0, which is automatic resolution mode.
LeftMargin & TopMargin 0.01 The margins around the symbol.
Mode Binary Determines the method used to encode data which may reduce symbol size:
Text – encodes text characters including ASCII 9 & ASCII 13
Binary – encodes bytes of data (Default)
Orientation 0 The orientation of the symbol.
ProcessTilde 1 (True) When enabled, ~?? ? will be converted to an ASCII character where ?? ? is a 3 digit number. For example, ~009 may be used for a tab function and ~013 for a return.
Rows 0 This should usually be left at 0. Determines the smallest symbol size according to the number of rows.
Macro PDF417 ActiveX Control Properties
MacroPDFEnable 0 (False) When true, indicates that this barcode is part of a MacroPDF sequence.
MacroPDFFileID 0 Assigns a file id to the barcode. Each barcode in the sequence must have the same file id assigned to it. Default is 0; valid options are 0-899.
MacroPDFSegment Index 0 The index number of this barcode in relation to the set. Default is 0; valid options are 0-99998; each barcode in the sequence must have a unique segment index.
MacroPDFLast Segment 0 (False) When true, indicates that this is the final barcode in the MacroPDF sequence.