Using the Active Barcode Components in Word

There are two different ways of using the Active Barcode Component within Microsoft Word.

1. The component may be inserted as an Object - by choosing Object from the Insert menu, or

2. The component may be added as an ActiveX control from the Control Toolbox.

The component behaves in rather different ways in these two cases.

When inserted as an object the component behaves in just the same way as when inserted into any other container. Right-clicking on the barcode image and selecting Properties from the pop-up menu brings up the property pages that allow the barcode properties to be specified. (See Using Active Barcode Component in a Container for details.)

When added as an ActiveX Control the component is programmable from within Word's Visual Basic Editor. A number of simple macros are included in the ABC1.DOC sample supplied with Active 2D Barcode Component. While the sample macros are run from the Tools - Macros menu, single keystroke shortcuts can be added by choosing Tools - Customise and then pushing the Keyboard button. Scroll the categories list down to Macros and then choose a key to be used to initiate each macro. That's all there is to it.

Of course the macros supplied are rather rudimentary. Almost anything can be done by setting properties and calling methods.

More:

Setting the image size