An Active Barcode Control may be placed on a Word document by selecting the More Controls icon in the toolbox (which, if not visible, can be displayed by checking the Controls Toolbox member of the View – Toolbars menu) and choosing Active Barcode Control from the list of Object types available. In Word 2007 the toolbox appears in the Control pane of the Developer toolbar. To make the Developer toolbar visible select the Office icon, choose Word Options and in the Popular pane check the checkbox labelled “Show Developer tab in the ribbon”.

The default barcode image is displayed. Right click on the image and choose Properties from the pop-up menu.


The Properties box shows the current properties of the barcode which may be edited as required – including the Caption property which sets the barcode data.
Note that the control can be selected and its properties displayed only when Word is in Design mode. Design mode may be turned on or off using the top left-hand icon of the Control toolbox (or the Design mode icon in Office 2007).
The sample Word document ActiveDemo2003.doc also contains two demonstration macros that enable the content of the barcode to be set. The axbar1 macro pops-up a dialog request the barcode data, while the axbar2 macro takes data from the current selection text on the document.
More: