Examples with the Barcode Object
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.
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.
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.
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.
-
BarcodeImage: Sample source code for using the object in Visual Basic Script
Open-source software @ github: Visual Basic Script/Windows Scritping File (WSF)
A command line interface created with Visual Basic Script
-
Word Macro (VBA) to add barcodes to pages.
for Word 365, 2024, 2021, 2019, 2016, 2013, 2010
This macro shows how to add one barcode to each page containing a variable content and a page number.
-
Automatically change a barcode before printing or when saving
DOCMfor Word 365, 2024, 2021, 2019, 2016, 2013, 2010 (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, 2024, 2021, 2019, 2016, 2013, 2010 (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