[Unit][ReportWorkshop] Display fields as QRCode
Posted: Sun Sep 17, 2023 2:51 pm
This example shows how to display values of fields in ReportWorkshop as QRCodes.
This is the first version of barcode field object for ReportWorkshop. It supports only QRCodes, and generates results as TMetafile (so it is VCL-only)
How to use
This unit implements "qrcode" field type to display text values as QRCodes.
The simplest syntax:
This field type has an optional format string, in a form of space-delimited list property=value, with supported properties:
Example
Report design
Report result:
Plans
I plan to extend this unit:
This is the first version of barcode field object for ReportWorkshop. It supports only QRCodes, and generates results as TMetafile (so it is VCL-only)
How to use
- Download Zint Barcode Generator for Delphi, free open source barcode generator for Delphi and Lazarus. Add path to its PAS-files to Delphi library.
- Include RVReportZintBarcode.pas in your project.
- Add RVReportZintBarcode.pas to "uses" of the main form unit.
This unit implements "qrcode" field type to display text values as QRCodes.
The simplest syntax:
Code: Select all
{FIELDNAME qrcode}
- size - image size in pixels (default - 100)
- color - foreground color (default - black)
- backcolor - background color (default - white)
Code: Select all
{VALUE qrcode "color=darkred size=200"}
Report design
Report result:
Plans
I plan to extend this unit:
- to allow generation of all types of barcodes supported by Zint
- to support more output image formats
- Lazarus compatibility
- more parameters in format string