Insert an ActiveX control
When you insert a Microsoft ActiveX control onto your form, Microsoft Office InfoPath 2003 inserts a custom control that is bound to either a group or field in the data source, depending on the options that you specified in the Add Custom Control Wizard.
Note To make ActiveX controls available in design mode, use the Add Custom Control Wizard to add them to the list of available controls in the Controls task pane.
Insert an ActiveX control (automatically create the data source)
- In design mode, place the insertion point where you want to insert the ActiveX control.
- If the Controls task pane is not visible, click More Controls on the Insert menu.
- In the Controls task pane, select the Automatically create data source check box.
- Under Custom in the Insert controls list, click the name of the ActiveX control that you want to insert.
Security Use caution when you add ActiveX controls to your form. ActiveX controls can be designed in such a way that their use could pose a security risk. It is recommended that you use only controls from trusted sources.
- To test the ActiveX control, click Preview Form on the Standard toolbar.
Insert an ActiveX control (bind to an existing field)
- In design mode, place the insertion point where you want to insert the ActiveX control.
Note If you are binding the ActiveX control to a repeating field, the control must be inside a repeating table or repeating section.
- If the Data Source task pane is not visible, click Data Source on the View menu.
- In the Data Source task pane, right-click the field that you want to bind the ActiveX control to, and then click the name of the ActiveX control on the shortcut menu.
Note If the ActiveX control is not listed on the shortcut menu, make sure that the field has a data type that matches the data type you specified for the ActiveX control. If the field has the same data type, click More on the shortcut menu, and then click the ActiveX control in the Select a Control dialog box.
Note The information in this topic may not apply if you are working with a form designed using Microsoft Office InfoPath 2003 without the service pack installed. Learn more