How to link a CSS file
In Resource Explorer, right-click Shared Resources, then choose Add Resource, as shown in
Choose Add Resource
On Add Resource, specify the CSS file to place in the resource folder.
In Source File, type the path to the CSS file. You can choose Browse to locate and select the file.
In File Name, optionally type a new name for the CSS file.
In Folder, the read-only path value shows the location of the BIRT resource folder. You can add the CSS file to this root folder, or choose Browse to select a subfolder in which to place the CSS file.
Figure 7‑5 shows an example of values supplied in Add Resources.
Add Resources with values supplied
Choose Finish. The CSS file appears in Resource Explorer, and it is available to any report design. Expand the file to display all styles, as shown in
Resource Explorer showing a CSS file
Link the CSS file to the report by performing the following tasks:
Right-click Styles, then choose Use CSS File, as shown in
Choose Use CSS File
On Use CSS, choose Browse to select the CSS file to link to the report. The Browse dialog, shown in
Figure 7‑8, displays the resource folder and the CSS files in the folder.
Browse showing the CSS file in the resource folder
Select the CSS file, then choose OK. Use CSS displays the selected CSS file and the styles in that file, as shown in
Use CSS showing the selected CSS file and its styles
To link a CSS file at report run time
Choose Include CSS file at view time.
In URI, type the location of the CSS file. You can specify a full or relative URL.
The linked CSS file and its styles appear under Styles in Outline, as shown in
Figure 7‑10. The style names appear in gray, indicating that they are not defined in the report design, but rather, are linked from an external file.
Outline showing a linked CSS file and its styles