The METTEAM installation includes a QR code font named bcsaztec.ttf. If Crystal Reports Designer is installed on a different computer, you will need to install the font onto the machine that Crystal Reports Designer is installed on to be able to make use of it in reports.
Installing the font
- Verify whether the font is installed on the METTEAM server in c:\Windows\Fonts\bcsaztec.ttf.
- Load the METTEAM installation ISO file on the PC with Crystal Reports.
- On the installation ISO, navigate to \Setup\Fonts.
- Double-click on bcsaztec.ttf.
- You will be prompted to install it. Click the Install button.
- Open Crystal Reports and BcsAztec should now be an option as a font.
Using the font in Crystal Reports Designer
- You will need to create a formula field to encode the information to the BcsAztec font.
- Right-click on Formula Fields and select New...
- You will be prompted to give it a name. Go ahead and name it to something that describes its function (e.g. QR_Barcode).
- In the Formula Workshop, you will need to enter BCSAztecEncode () around the field you would like for the QR code. Here is an example of the formula for the work order barcode:
- Hit Save and Close once you have gotten your formula entered.
- Note: You may get an error saying that there is an error in your formula. This does not effect the QR code from displaying when the report is run in METTEAM. If you would like to make it so that error does not pop up when adding QR codes, go to the next section which details resolving the issue.
- Click and drag that newly entered formula into your report.
- Click the font dropdown and select BcsAztec.
- Resize the field to be able to show the whole QR code. You may need to tweak this several times to get it to display properly.
Fixing the formula error in Crystal Reports Designer
The DLL file included and registered during METTEAM installation (cruflBcs_x64.dll) is for the 64-bit Crystal Reports Runtime and allows the BCSAztecEncode() formula in a report to be properly called on your METTEAM server. Crystal Reports Designer, however, is a 32-bit application which will not recognize the included DLL. To fix the error that you get about your formula not being correct for the QR code formula, please take the following steps:
- Download the attached cruflBcs.dll file to c:\Windows\SysWoW64
- Download the attached cruflBcs_x64.dll to c:\Windows\System32
- Open up Command Prompt as administrator.
- In Windows Server 2012-2016 and Windows 8-10, right-click on the Start Button and select Command Prompt (Admin).
- In Command Prompt type c:\Windows\SysWoW64\regsvr32.exe c:\Windows\SysWoW64\cruflBcs.dll.
- You will get a pop-up saying DllRegisterServer in c:\Windows\SysWoW64\cruflBcs.dll succeeded.
- In the same Command Prompt window type c:\Windows\System32\regsvr32.exe c:\Windows\SysWoW64\cruflBcs.dll
- To make sure the 64-bit DLL is properly registered, type c:\Windows\System32\regsvr32.exe c:\Windows\System32\cruflBcs_x64.dll
- Click the OK button and you should no longer receive the error message for having BCSAztecEncode() in a Crystal Reports formula.
NOTE: if your Windows directory is not "C:\Windows" then you can use the below commands
%systemroot%\System32\ regsvr32.exe %systemroot%\SysWoW64\cruflBcs.dll
%systemroot%\SysWoW64\ regsvr32.exe %systemroot%\SysWoW64\cruflBcs.dll