A Crystal Report uses Thai characters that are stored in a database. The database field is formatted to use the Arial font.
At runtime in a Visual Basic 6 (VB6) application the Thai characters are not displayed correctly in the Report Designer Component's (RDC) Viewer.
Exporting to the Word/RTF format from the viewer displays the Thai characters correctly.
Crystal Reports XI (v11.0)
Reproducing the Issue
Create a Crystal Report that is using a database field to pass Thai characters to a report.
Right click on the database field and click on Format Field. Select the Arial font.
Save the report and view it through the RDC viewer at runtime in a VB6 application.
The Thai characters will display incorrectly.
In order to display the Thai characters at runtime in the RDC viewer you need to change the font to a Unicode compliant version of the Arial font - Arial Unicode MS.
The Arial Unicode MS font is available on systems that have Microsoft Office installed.
- Launch the Office installer through Add / Remove Programs and click on the Change option.
- Select the Add or Remove Features option.
- Select the Word program.
- Also select the "Choose advanced customization of applications" option.
- Go to the Office Shared Features area and click on the plus sign.
- Click on the plus sign next to International Support.
- Click the icon next to Universal Font and select to entire the feature.
This will add the Arial Unicode MS font to the system.
Once the Arial Unicode MS font is installed go back to the report in Crystal Reports.
- Right click on the database field.
- Click on Format Field.
- Select the Font tab.
- Change the font to Arial Unicode MS.
- Save the report.
The database field will now display the Thai font properly at runtime in the RDC's viewer.
VB6, Visual Basic 6, RDC, viewer, crviewer, runtime, fonts , KBA , BI-DEV , Business Intelligence Software Development Kits (SDKs) , How To