Online Barcoding: Client Side Overview

Adding barcodes to web pages using the TALtech Barcode ActiveX control is extremely easy when all web clients are running Windows and Internet Explorer 4.0 or above. Internet Explorer under Windows fully supports ActiveX controls and will even automatically download and install the ActiveX control from your web server the first time a client visits a page containing a reference to the ActiveX control. Once the control has been installed on the clients PC, it does not need to be downloaded or installed again if the user visits other web pages that contain references to the control. The steps for adding client side ActiveX barcodes are as follows:

Step 1

Copy the Internet CAB file containing the redistributable version of the TALtech Barcode ActiveX control to a folder on your web server. The server can be any type of system including UNIX, Linux, Windows, etc. The TALtech Barcode ActiveX Control is provided with the necessary CAB file (approximately 500Kb) so that all you need to do is copy the supplied CAB file your server.

Step 2

Add Object tags to your HTML documents that reference the control. The following sample object tags show how to insert a TALtech Barcode Object into an HTML document. The first object points to a LPK (license) file that must be installed on the users system in their Windows folder. The TALtech Barcode ActiveX Control will not be scriptable in Internet Explorer without this file installed. The LPK file is installed automatically from the Internet CAB file and the Setup program that comes with the TALtech Barcode ActiveX Control. The second object tag below is for the actual control. The name of the control is set using the ID=”controlname” setting and the CODEBASE tag points to a web URL or a file path where the setup program for the control can be found if the control is not currently installed on the user's system. If the control is not installed then the client's browser will automatically download the control from the specified URL and install it. The TALtech Barcode ActiveX Control comes complete with a fully code signed CAB file (signed with Verisign's Authenticode technology) so that all you need to do is copy the supplied CAB file to a folder on your web server. Note: The URL in the CODEBASE tag should reference the CAB file on your web server.

To place a TALtech Barcode ActiveX Control in a HTML document you simply add the following object tags to your document where you want a barcode to appear.

 

Step 3

Add VBScript or JavaScript code to your HTML document to set the properties of the control so that it generates the type of barcode that you want as well as the message that you want to encode in the barcode.

To set properties of the TALtech Barcode ActiveX Control after it has been placed in an HTML document, you would use JavaScript or VBScript code similar to the following line:

 TALBarCd1.message="1234567890"

Refer to the documentation that comes with the TALtech Barcode ActiveX Control for a complete reference to all of the properties and methods that are available in the control.

Contact Us