Configuring the Label and Embedded Barcode
Now that you know what information you want on your labels, you have to decide what you want your labels to look like.
- In the Design panel, drag a Labels component from the Report Component Palette to your workspace. By default, 15 labels will display in your workspace.
- Specify the Data Key that maps to the Data Source that you want to drive the label. Drag your Datasource (i.e., PrimerData) to the Dataset Key in the Configure Labels tab of the Property Inspector.
While the Label component is selected, edit the number and size of the labels in the Configure Labels tab. The size of the label is based on the values for the Label Attributes: Rows, Columns, Label Width, Label Height, Spacing Width, and Spacing Height. When any of the Label Attributes are changed, the labels on the page are automatically resized based on these values.
Note: To commit values to any of the Label Attributes, enter a value and hit Enter.
The top-left label in the Label component is the template label. Here is where you'll configure your label. To edit a component or shape within a template label, super-select it by double clicking on it. When you Preview and Print your labels, the template label pulls all the data from the dataset and populates all your labels.
Next, drag a Barcode component and place it in the upper left corner of the template label.
- Now you're ready to drag your data keys (i.e., PrimerName, LabNumber, and Location) from the Key Browser to the label template.
Note: Once you drag the first data key to your label template, the Edit Text tab will open. You can drag the other data keys directly into the Edit Text tab so they make one shape. This makes editing a little easier.
Next, drag the Sequence data key into the lower left corner of the label.
- Go to the Preview panel to verify if all your data populated all the labels, and check how all the data fits on the label because you may need to resize the barcode or text components.
- Go back to the Design panel, click on the barcode component, and specify the data key you want to map to the Data Source to drive the barcode. In this example, we want the barcode to encode the PrimerName to the Data Key field of the barcode.
Next, choose a Barcode Format from the dropdown list based on your label requirements (i.e., product type, number of characters required, label spacing, etc.,). For this example, select the QR_CODE barcode format. Note: If you want to push multiple fields into the barcode text, you can concatenate them together in the Data section of the report.
- Add a Title for your label by dragging a Text Shape component to the top of the label. Enter a title inside the text box (i.e., Primer Identification Label).
In addition, in the Edit Text tab, you can mix plain text and data keys, change the font, size, and style, and even bold text that you want to stand out.
- Go to the Preview Panel, to view the finished design layout and the HTML code. It's not uncommon to go back to the Design panel to resize components and shapes on the label several times so they fit correctly and the data is readable. This may take several iterations.
You can print your labels by creating a Print Action on the Schedule tab, and run it by clicking the "Run Immediately" button. If you receive new shipments of Primers on a set schedule, you can setup the labels to print automatically. For this example, we want to simply print our labels on demand.