Linking an Object to a Database Field

After you configure a document to read from a database, you can populate an object's value by linking the object's data sources to database fields in your file.

ClosedTo link an object to a database field by using the object's Data Sources property page

  1. Double-click the object to open the Object Properties dialog. Alternatively, right-click the object, and then click Properties.

  2. In the navigation pane, click the data source whose data you want to be populated from a database field. The Data Sources property page is displayed.

  3. On the Data Source tab, click the icon next to Type to open the Change Data Source Type wizard.

  4. For Type, click Database Field.

  5. Click Next.

  6. In the Field Name list, click the database field that contains the data that you want to be read into the selected data source.

  7. Click Finish to close the Change Data Source Type wizard.

  8. Optionally, enter sample data for the data source in the Sample Data field. This text should resemble the data format of the data in the selected database field. It is displayed on the printed items if BarTender cannot connect to the database.

  9. Click Close to close the Object Properties dialog.

ClosedTo link an object to a database field by using a drag-and-drop operation

  1. In the Toolbox, click Data Sources to display the Data Sources pane.

  2. Expand Database Fields to show all available fields in your database.

  3. Drag the database field to the object that you want.

  4. Optionally, double-click the object to open the Object Properties dialog, and then enter sample data for the data source. This text should resemble the data format of the data in the selected database field. Alternatively, right-click the object, and then click Properties to open the Object Properties dialog.

Related Topics