If you want to use a QR-Codes in Crystal Report (Version 2016 or later) you can do it in the following way:
1. Working with QR-Codes needs a special font
Take the Aztec font-file bcsqrcode.ttf and copy it directly into folder:
C:\Windows\Fonts
2. Installation of required libraries so that Crystal Report can generate QR codes
(32- and 64-bit Runtime)
Libs:
cruflBcs.dll
cruflBcs_x64.dll
These libraries are to be copied into the following directories:
- dll file to c:\Windows\SysWoW64
- dll to c:\Windows\System32
Register the Libraries in Window system:
c:\Windows\SysWoW64\regsvr32.exe c:\Windows\SysWoW64\cruflBcs.dll
c:\Windows\System32\regsvr32.exe c:\Windows\SysWoW64\cruflBcs.dll
c:\Windows\System32\regsvr32.exe c:\Windows\System32\cruflBcs_x64.dll
Hint:
The Root-directory could have a different name as windows (Check first and then adjust if necessary)
3. Create a Formula with the String with the contents for the QR-Code
(e.g. code_string)
4. Create a Formula for the QR-Code field
(e.g. qr_code)
- go to functions
- go to “additional functions”
- select COM- and .NET-UFLs
- take BCSQRCodeEncode
5. Position the QR-Code field and select the QR font
6. Further information on various barcodes
With the addition of the libraries, many more barcode encodings are now available, which can be used in the same way as the QR code description. The corresponding barcode fonts must of course be installed.
Libraries and Font for download:
Comments
2 comments
Thanks for these great instructions. It worked well except when I run the Crystal Report from my application, I get this error.
UFL 'u212.com.dll' that implements this function is missing
Hello, I have a problem, the reports with embedded QR code do not work for me in Windows Server 2022 since it does not allow me to register the dll cruflBcs_x64.dll, do you know how to solve it?
Please sign in to leave a comment.