Assigning a resource file to a report
You can add as many resource files as needed to the resource folder. Different reports in a project can use different resource files, and you can assign multiple resource files to a report. Assign a resource file to a report by completing one of the following tasks:
*Select a resource file that currently resides in the resource folder.
*Create a new resource file in BIRT Report Designer, then assign it to the report.
If you select an existing file, you can assign the keys that are defined in that file to report parameters, label, text, or chart elements. If you create a new resource file, it contains no keys. You define the keys as you add report parameters, label, or text elements to the report.
How to assign a resource file to a report
1 In the layout editor, select the report by clicking in an empty area on the report page.
2 In Property Editor, under Properties, choose Resources. Property Editor displays the Resources page, as shown in Figure 29‑2.
Figure 20-2 Property Editor displaying the Resources pageFigure 20-2 Property Editor displaying the Resources page
Figure 29‑2 Property Editor displaying the Resources page
3 Choose Add File, next to Properties Files.
4 In Browse Resource Files, indicate which resource file to use by completing one of the following tasks:
*To use a resource file that currently exists in the resource folder, select the resource file displayed under Shared Resources.
*To create a new resource file using BIRT Report Designer, select a folder. In New File Name, type a name for the new resource file, such as CustomerReportResources.properties, as shown in Figure 29‑3. You must type the .properties file‑name extension.
Figure 20-3 Browse Resource Files showing a new resource fileFigure 20-3 Browse Resource Files showing a new resource file
Figure 29‑3 Browse Resource Files showing a new resource file
5 Choose OK.
The name of the resource file appears in Properties Files in the Resources page of Property Editor. The report uses the selected resource file. You can specify a different resource file to use at any time. You can also delete a resource file by choosing Remove File in the Resources page.