7.3. Insert Barcode ActiveX into an Office document

There are two methods to insert a Barcode ActiveX object into an office document: Insert Object command and Insert Control command.

After the Barcode ActiveX object is inserted into the document, you can treat it like any OLE object. You can also write VBA script to manipulate the properties, invoke methods and respond to events.

7.3.1. Insert as an OLE document

We recommend that you use this method when working with Barcode ActiveX object. From Insert menu, select the Insert Object command. From the object type selection list, select Morovia Barcode ActiveX Professional and click OK.

Figure 7.2. Insert as an OLE document

Insert as an OLE document

7.3.2. Insert as a control

Another method to place the Barcode ActiveX object into an office document is to use the Insert Control command. First, make sure the control toolbox toolbar appears somewhere over the window by check the option from View | Toolbars.

At the right bottom of the Control Toolbox, click on the More Controls icon. From the pop-up menu, scroll all the way down and select Morovia Barcode ActiveX Professional. The cursor turns into a cross-hair icon. Click on the place you’d like to place the object and drag the mouse down to draw a rectangle. Release the mouse. The barcode control now appears on the document. The barcode object fills the rectangle you just drew. You might want to adjust the rectangle to reflect the natural size of the control. See Section 7.5, “Controlling the size” for details.

Figure 7.3. Insert as an OLE control

Insert as an OLE control