Use Barcodes in a report template

Top  Previous  Next

Barcode controls are provided with the internal report designer that comes with AyaNova.

 

Due to the large number of different types of barcodes, as well as barcode hardware, we have not tested this feature with every barcode or barcode device.

 

We provide the following tutorial as a tutorial only, as whether a barcode will be valid would depend on the bound data, type of barcode hardware, and barcode type selected.

 

If you have any questions regarding customization using barcode controls, we will attempt to help where we can, but we do not have equivalent hardware/software to test and be able to provide definitive solutions.

 

It is recommended to try different settings until it works for you.

 

It is recommended that you review the Report Templates Help sections before proceeding for an overview of the Report Designer.

 

 

1.Select the Service Workorders grid within the Service navigation pane
2.Select the New Summary report template from the Print drop down menu
3.Enter in a report name of Workorder Number Barcode Labels
4.Within the report designer, select the Wizard, select Avery Standard, select 12-295 Laser tags White, select Finish
i.Refer to the previous tutorial on creating a Label report template if needed.

ReportBarcode1

ReportBarcode2

ReportBarcode3

5.Select the Toolbox tab, select BarCode control field, and drag onto the design

ReportBarcode4

6.Adjust the barcode control so that it at least has at least a Size Height of 100 and a Size Width of 120 and is located towards the top middle of the label

ReportBarcode5

7.The basic properties of the barcode need to be set to specify its type and look.
ii.You must specify the BarCode.Symbology property (codetype) which returns an object that corresponds to the particular barcode's symbology type and contains all the properties required by this type.
iii.If needed, also set the BarCode.Module and BarCode.Padding properties to change a barcode's appearance.
8.In this tutorial, we will select the Symbology property of Code11

ReportBarcode6

9.Now we will bind the data field for the workorder number to this barcode control
iv.With the barcode on the panel still selected, expand the DataBinding property field -> expand the Text property field under the DataBinding field
v.Drop down the selection for the Binding field
vi.Expand the WorkorderServiceList

ReportBarcode7

vii.Scroll down and select the Workorder field

ReportBarcode8

ReportBarcode9

10. Note the barcode on the panel may show "there are invalid characters in the text" - if you click on Preview you will see  it actually displays the barcode with the workorder number or not.

11.We will now also drag onto the design panel the additional data control fields such as the Client, Workorder Status, and Summary and resize them so useful.
12.Select the Preview link to preview what the report will look like.

ReportBarcode9b

13.Close and save the report

 

When previewing, instead of a barcode there is a message instead, that would indicate you need to adjust depending on the message.

 

Errors that can occur with barcodes in reports

 

When adjusting a barcode some errors can occur due to incorrect parameters being specified. For instance, if a barcode control is too small to represent the barcode type specified, the following error message will be shown in place of the barcode.

 

If there any characters in the barcode's text that are not allowed by this barcode type, then the following exception will be shown. NOTE: It is suggested to check Preview first though, as it may just be cosmetic.

 

Also, it's necessary to ensure that the text characters meet the text format rules required by the barcode's type. When these characters do not satisfy the required text formatting then the following message will be shown.