Setting up the custom resources files directory
Crystal Reports for Visual Studio is designed to work with several default language resource files, and also any custom language resource files created and compiled by the developer.
The default language resource files include the following:
- English (en)
- French (fr)
- German (de)
- Spanish (es)
- Italian (it)
- Japanese (jp)
- Korean (ko)
- Simplified Chinese (zh-chs)
- Traditional Chinese (zh-cht)
The default resource files can be downloaded from the Business Objects Web Site.
In addition to the default languages, you can create your own customized language resource files for any other language.
In this tutorial you will practice custom resource file compilation by working with an uncompiled folder containing the Spanish default language resource files. For this tutorial you will rename this folder to represent a custom language.
You begin by setting up a custom resource files directory to hold your custom resource files.
- Go to the Tutorials' Sample Code Directory and locate the folder "CrystalReportViewer_resource_files".
this folder to the root directory of your hard drive.
This procedure assumes that your root directory is on the C: drive.
Windows Explorer, open the folder named C:\CrystalReportViewer_resource_files.
Locate the subfolder, es, containing uncompiled Spanish language strings as .txt files. While Spanish is already supplied as one of the default compiled languages, you will use this directory to practice created a custom resource file. To do this, you rename the Spanish directory to Romanian, a language that is not one of the default languages. You then test this directory as if it contained Romanian language strings.
Rename the es directory to
ro is the abbreviation for the Romanian language.
For this tutorial, you will use the following:
- Default resources for three supplied languages:
- Manually compiled resources for one custom language:
Follow the instructions in Compiling the resource files to compile the custom resource files for the ro language folder.