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