Why do the boxes appear instead of text when printig the reports?
The "boxes" are the result of the fact that the configured font does not support the characters of the language in use. In this example, the "Arial" font style has been configured for the report. Unfortunately, the "Arial" font does not support the Czech character set.
To ensure correct display, Q-DAS applications may use different fonts at runtime (fallback level). The "Arial Unicode MS" font was used as a fallback for output to printer or PDF. As this font is no longer available for Windows operating systems, only the font configured for the report can be used for printing.
Which fonts support the language characters used?
To use the reports on the international market, it is important to choose a font that can display the local language. Font support may vary from device to device. A report template with the most commonly used fonts is available here. It can be used to test whether the selected language is displayed correctly. Select the local language in the Q-DAS application, print the report and check which font can display the characters correctly. An alternative is to check with Microsoft to see which font supports the local language.
Download report with overview of fonts: FontOverview.zip
How can this problem be solved?
The default report templates have been created using the "Arial" font. This section briefly describes how to change the fonts in the report templates. In addition to the Form Designer (Q-FD), the use of the text editor "Notepad ++" is also explained.
Where to find default reports?
For a server-client deployment, the "Reports" folder containing all report templates (*.DEF) is located at:
\\<Server Name>\Q-DAS\Share\PLANT\DEFAULT
If installed locally, the "Reports" folder is located at:
C:\ProgramData\Q-DAS\Local\PLANT\DEFAULT
It is recommended to backup the "Reports" folder before editing. This can be done by compressing the "Reports" folder. To do this, right click on the folder in file explorer and select "Compressed (zipped) folder" from the "Send to" menu.
In the report template files for the product "Q-EMPB" (Initial Sample Report), the English and German texts in particular have been adapted using the "Arial" font.
We therefore recommend not to change the font in these report templates (EM_*.DEF)!
How to change the font using Q-FD?
It is recommended to use the Form Designer (Q-FD) to change single texts. In the Form Designer, select the relevant text element with a right click and select "Character set" from the "Features" menu.
Make sure that the text does not belong to a group of elements! Otherwise, the text parameters (size, font, colour, etc.) will be applied to all texts in the group.
The font can be selected from the "Character set" menu.
Then click "Save" to apply the changes.
How to change the font for an entire template using the text editor?
Use the text editor to easily change the font for entire text in a report template.
To load a report template file using the "Notepad ++" text editor, select "Open" from the 'File' menu.
Navigate to the required folder and select the required report template file (*.DEF). This example uses the "AS_0010_ValueChart" template. Font "Microsoft YaHei UI" will replace the current font "Arial".
This report uses "Arial" font for the list of text parameters in the "Font" section and for the graphics in the corresponding graphics section.
To load the dialouge for replacing the content, select "Replace..." from the "Search" menu.
In "Find what", type the word or phrase to be replaced. In this example, "Arial".
In "Replace with", type the new word or phrase. In this example, "Microsoft YaHei UI".
Select "Replace All" to change all occurrences of the word or phrase.
Or select "Replace" to update a single occurrence of the word or phrase. When using "Replace", repeat the "Find Next" and "Replace" buttons until no more occurrences are shown.
Apply the changes by clicking "Save".
How to change the font for all templates using the text editor?
The "Notepad ++" text editor offers the possibility of loading multiple files and also of replacing the contents of all the files loaded.