将数据库用于 BarTender

许多用户会将客户记录或产品信息等数据存储在 BarTender 外部的某个文件中,如 Excel 电子表格、SQL 数据库或文本文件。如果您想要使用此数据,BarTender 可以直接将信息拉入模板上的任何条形码、文本对象或编码器对象。 这些外部数据文件统称为数据库。 本主题讨论了连接到数据库并将信息拉入模板上的某个对象所需的步骤。

Closed连接至数据库

  1. 从“文件”菜单中选择“数据库设置”。 或者,单击主工具栏上的 图标。 将发生以下其中一种情况:

    • If you have not previously connected to a database, this operation launches the Database Setup Wizard.

    • If you are currently connected to a database, this operation opens the Database Setup dialog. 单击 图标以启动“数据库设置向导”。

  2. 在“数据库设置向导”的初始页面上,选择在其中存储您的数据的文件类型。单击“下一步”。

  3. Follow the steps in the wizard to complete the connection setup for the selected file type. 在向导结束时,单击“完成”以打开“数据库设置”对话框。

在连接到数据库之后,存储在文件中的信息可以用来在您的模板上填充条形码、文本对象或编码器对象。 The simplest way to pull in this information is to use the Data Sources pane of the Toolbox.

Closed将对象链接至数据库字段

  1. 工具箱中选择“数据源”,以显示“数据源”窗格。

  2. 展开“数据库字段”,以显示数据库中所有可用的字段。

  3. Drag the database field that you want to the barcode, text, or encoder object that you want.

如果在设计区域的底部启用“实时数据库导航器”,您的数据将直接显示在模板上。 Otherwise, select Print Preview from the File menu to view your data on your items.

相关主题