Barcodes
In Logi Report Designer, you can create both linear barcodes such as Code 39, Code 128, EAN and UPC, and 2D barcodes like QR Code in page reports which are created using query resources.
A barcode can be inserted in the report areas listed in Component Placement.
This topic includes the following sections:
Inserting a Linear Barcode in a Report
- Position the mouse pointer at the destination where you want to insert the barcode.
- Select Insert > Barcode, or Home > Insert > Barcode. The Barcode Expert dialog appears.
- Select a dataset in the current page report from the Barcode Resources drop-down list to get data resources for the barcode, then specify the source of the barcode: a DBField, formula, summary or parameter. When you select to insert the barcode into a data component, the dataset drop-down list is disabled and you can only use resources from the current dataset to create the barcode.
- Select the required barcode type from the Symbology drop-down list. You can preview the format of the selected symbology in the Sample box. For detailed information on the symbologies of barcodes, refer to professional barcode technical documentation.
- Select the unit for the values of the quiet zone, narrow width, supplement, height and ratio from the Scale Mode drop-down list.
- Specify the space around the barcode in the Quite Zone text box (most symbologies require quiet zones that precede and follow the barcode).
- Set the barcode bar width in the Narrow Width text box.
- You can specify the supplement of the barcode. If you select the barcode type as Code 39, Code 128/128A/128B/128C or Codabar, you will not need to set the supplement.
- Set the height of the barcode bars in the Height text box.
- Specify the width ratio of the thick bar to the thin bar in the Ratio text box if you selected the barcode type as Code 39 or Codabar. The ratio can only be 2.0 or 3.0. Any ratio value not equal to 2.0 or 3.0 will be regarded as 2.0.
- You can change the default value of the barcode in the Default Message text box. The value will be used for the barcode in design mode.
- Select the Enable Checking Digits checkbox if you want to include check digits in the barcode.
- If you have selected the barcode type as Code 39, Code 128/128A/128B/128C, or Codabar, then you can select Display HR to display the barcode numbers together with the barcode.
- If you choose the Code 128 symbology, you can specify whether to enable optimizing the length of the barcode in the report result.
- Select Insert to close the dialog, then select the mouse button in the location where you want the barcode to be displayed.
Inserting a QR Code in a Report
- Position the mouse pointer at the destination where you want to insert the QR Code.
- Select Insert > QR Code, or Home > Insert > QR Code. The QR Code Expert dialog appears.
- Select a dataset in the current page report from the QR Code Resources drop-down list to get data resources for the QR Code, then specify the source of the QR Code: a DBField, formula, summary or parameter. When you select to insert the QR Code into a data component, the dataset drop-down list is disabled and you can only use resources from the current dataset to create the QR Code.
- Set the margin between the image in the middle of the QR Code and the border of the QR Code.
- Select the error correction level for the QR Code. Error correction helps in making a QR Code stay readable, even when some pixels are missing. There are four correction levels. Level L means 7% of the code words can be recovered from a damaged symbol, level M 15%, level Q 25% and level H 30%. The higher the level is the bigger the QR Code gets.
- You can change the default value of the QR Code in the Default Message text box, which will be used for the QR Code in design mode. If you want to use it as the value of the QR Code in the report result, select Use Default Message, then the data field you select as the source of the QR Code will be ignored.
- Select Insert to close the dialog, then select the mouse button in the location where you want the QR Code to be displayed.
Notes:
- Where a barcode can be inserted in a report depends on what you have selected as its source.
- You can also create a barcode component by first inserting a label, DBField, formula, summary, parameter or special field and then changing its display type to Barcode or QR Code.
See an example: The SampleComponents catalog, included with Logi Report Designer, contains reports that have examples of how each component type could be used in a report. For the barcode component example, open <install_root>\Demo\Reports\SampleComponents\Barcode.cls
.