Linking an Object to a Database Field

Once a document is set up 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 using the object's Data Sources property page

  1. Double-click on the desired object to open the Object Properties dialog. Alternatively, select Properties from the object's context menu.

  2. In the Navigation Pane, click on the data source whose data you want populated from a database field to display the Data Sources property page.

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

  4. For Type, select Database Field.

  5. Click Next.

  6. Select the desired database field from the Field Name dropdown list. The field that you select should contain the data you want read into the selected data source.

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

  8. If desired, enter sample data for the data source in the Sample Data field. This text should mimic the data format of the data in the selected database field. It will be displayed on the printed item(s) in the event that BarTender cannot connect to the database.

  9. Click Close to close the Object Properties dialog.

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

  1. Select Data Sources in the Toolbox to display the Data Sources pane.

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

  3. Click and hold down on the desired database field.

  4. Drag the database field to the desired object.

  5. Release the database field.

  6. If desired, double-click on the object to open the Object Properties dialog and enter sample data for the data source. This text should mimic the data format of the data in the selected database field. Alternatively, select Properties from the object's context menu to open the Object Properties dialog.

Related Topics