Using the Active 2D-Barcode Control in Word

There are two different ways of using the Active 2D-Barcode Control within Microsoft Word.

1.   the control may be inserted as an Object – by choosing Object from the Insert menu, or

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

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

When inserted as an object the control behaves in just the same way as when inserted into any other container. Double-clicking on the barcode image brings up the property pages which allow the barcode properties to be specified.

 

When added as an ActiveX Control the control is programmable from within Word's Visual Basic Editor. A number of simple macros are included in the A2BC1.DOC sample supplied with Active 2D-Barcode Control. 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:

Using the control in a container