Download examples for different applications
See by the practical example, how you can use ActiveBarcode. You can use the examples as a starting point to your own solutions.
The examples for Office products contain a macro.
So, the execution of macros should not be completely deactivated in the Trust Center. Easiest is to open the documents at a trusted location. You can configure this at the Trust Center.
When using an old Office version before 2007 you need to set the security settings at least on 'middle' to be able to launch the macros.
The examples use the ActiveBarcode object (ActiveX)
Please keep in mind that these examples use the ActiveBarcode object, which is an ActiveX control. If the barcode does not show up or does not change, you may have deactivated the usage of ActiveX in your Office installation. You can change this at the Trust Center.

So, the execution of macros should not be completely deactivated in the Trust Center. Easiest is to open the documents at a trusted location. You can configure this at the Trust Center.
When using an old Office version before 2007 you need to set the security settings at least on 'middle' to be able to launch the macros.
The examples use the ActiveBarcode object (ActiveX)
Please keep in mind that these examples use the ActiveBarcode object, which is an ActiveX control. If the barcode does not show up or does not change, you may have deactivated the usage of ActiveX in your Office installation. You can change this at the Trust Center.
-
Mail merge Demo
ZIPfor Word 2007-2019 (ZIP archive)
A Word document with a barcode control is used for serial printing. The barcode is changed during the serial printing accordingly.
-
Bind a text pane of an user entry form to a barcode
DOCMfor Word 2007-2019 (uncompressed)
This example contains a simple user entry form. A text pane is linked with the barcode object. The barcode is updated automatically, if you change the text pane.
-
Bind a bookmark to a barcode.
DOCMfor Word 2013, 2016, 2019 (uncompressed)
This example shows how to bind a bookmark to a barcode object.
-
Bind a field to a barcode.
DOCMfor Word 2013, 2016, 2019 (uncompressed)
This example shows how to bind a field to a barcode object.
-
Automatically change a barcode before printing or when saving
DOCMfor Word 2013, 2016, 2019 (uncompressed)
The barcode inside the document will be changed automatically before printing or saving.
-
Make the barcode object invisible when "Text Error" is displayed
XLSMfor Excel 365, 2010, 2013, 2016, 2019 (uncompressed)
This example shows how to avoid displaying a "text error" when the barcode is empty.
-
Delphi Example source. Small desktop application for demo purposes.
ZIPfor Delphi (ZIP archive)
Some example code created using Delphi 10.1 Berlin
-
Sample source code for using the object in Visual Basic Script
WSFfor Visual Basic Script/Windows Scritping File (WSF) (uncompressed)
A command line interface created with Visual Basic Script
-
Word Macro (VBA) to add barcodes to pages.
for Word 365, 2010, 2013, 2016, 2019
This macro shows how to add one barcode to each page containing a variable content and a page number.
Example file for legacy versions of Office
-
Automatically change a barcode before printing
DOCMfor Word 2007 (uncompressed)
The barcode inside the document will be changed automatically before printing.
-
Increase a barcode by 1 before printing
DOCMfor Word 2007 (uncompressed)
The barcode inside the document will be automatically incremented by 1 before printing.
-
Mail merge Demo
ZIPfor Word 2000,XP,2003 (ZIP archive)
A Word document with a barcode control is used for serial printing. The barcode is changed during the serial printing accordingly.
-
Bind a text pane of an user entry form to a barcode
DOCfor Word 2000,XP,2003 (uncompressed)
This example contains a simple user entry form. A text pane is linked with the barcode object. The barcode is updated automatically, if you change the text pane.
-
Automatically change a barcode before printing
DOCfor Word 2000,XP,2003 (uncompressed)
The barcode inside the document will be changed automatically before printing.
-
Increase a barcode by 1 before printing
DOCfor Word 2000,XP,2003 (uncompressed)
The barcode inside the document will be automatically incremented by 1 before printing.
-
Automatically create a label sheet with barcodes
DOCfor Word 2000,XP,2003 (uncompressed)
A complete label sheet with barcodes will be created by a macro.