A BarCode is an optical machine-readable representation of data relating to the object to which it is attached. BarCodes are very much commercially successful and forms the backbone of automated checkout system in many industries. Originally barcodes represented data by varying the widths and spacing of parallel lines, and may be referred to as linear or one-dimensional (1D). Later they evolved into rectangles, dots, hexagons and other geometric patterns in two dimensions (2D). And both these forms of the BarCode are supported in C1Reports. ComponentOne Reports for WinForms supports barcode fields using its extensible c**ustom field architecture. The BarCode c**ustom field is implemented using C1.Win.C1BarCode assembly from ComponentOne Studio for Winforms. This blog demonstrates the use of barcode fields in reports using the C1ReportDesigner application. C1Reports offers two forms of BarCode :
The Fields group under Design tab in the C1ReportDesigner application provides tools for adding various report fields including the BarCode field. This toolbar is enabled only in design mode. In Unbound report, barcode field is disabled. To display a barcode, you need to add a Label field and set its BarCode property to any value other than 'None'. Whereas in Bound mode, 'Add Barcode' button is enabled and on clicking it, a list appears which gives the option to select Data-Fields from the attached data source and display them as barcode. Various type of barcode formats are supported by C1Reports and you may choose from the available options present in the DropDown.
QR Code (abbreviated from Quick Response Code) is the trademark for a type of matrix barcode (or two-dimensional code) and is now offered by C1Reports as one of it's c**ustom f**ield but only in the 4.0 Framework. QRCode custom field is also present in the Fields group of the Design tab in the C1ReportDesigner application. To use QRcode custom field in the C1ReportDesigner application, follow the given steps: 1. Run the C1ReportDesigner application. See Accessing C1ReportDesigner from Visual Studio for details. 2. Check if the QRCode icon is present in the C1ReportDesigner toolbar. If QRCode icon is missing, follow the troubleshooting steps from this link to add the icon in the C1ReportDesigner. 3. Create a new report or open an existing report. See Creating a Basic Report Definition for an example. 4. Click the QRCode icon and drag it onto your report to add a QRCode field. That's it! The main aspects of the QRCode field include : CodeVersion Encoding ErrorCorrectionLevel Run the C1ReportDesigner application, perform the above mentioned steps and Happy Bar-Coding! In case you face any issues while using Barcode in C1Reports, contact our support team on the ComponentOne Support Forums: http://our.componentone.com/groups