Changing colors and patterns using PLSQL Modifying the color palette Importing or exporting a color palette

4-74 Oracle Reports Users Guide to Building Reports

4.9.6.4 Changing colors and patterns using PLSQL

To change the color of an object using PLSQL instead of the user interface:

1. In the Object Navigator, expand the Paper Layout node.

2. Double-click the PLSQL icon next to the object for which you want to change the

color.

3. In the PLSQL Editor, use the following built-in procedures to change the color of

the object as desired: SRW.SET_BACKGROUND_BORDER_COLOR SRW.SET_BACKGROUND_FILL_COLOR SRW.SET_FOREGROUND_BORDER_COLOR SRW.SET_FOREGROUND_FILL_COLOR SRW.SET_TEXT_COLOR SRW.SET_BORDER_PATTERN See also Section 2.4.5, About changing colors and patterns Topic SRW built-in package in the Reference PLSQL Reference Built-in Packages section of the Oracle Reports online Help.

4.9.6.5 Modifying the color palette

To modify the color palette: 1. First, make the color palette editable: ■ Choose Edit Preferences, and set Color Mode to Editable, as described in Section 4.2.6, Setting color palette preferences . ■ Shut down and restart Oracle Reports Builder to enable the Editable mode.

2. In the Paper Layout view, choose Format Color Palette Edit.

3. In the Color Palette dialog box, modify the color palette as desired: ■ Click Edit to alter the settings of the current color. ■ Type a new name in Current Color, then click Rename to rename the current color. ■ Select Color to Edit contains the current color palette being used in the Report Editor for the current report. Select a color from the palette to alter it. ■ Click OK to apply your changes to the current report. See also Section 2.4.5, About changing colors and patterns Note: By default, color palettes are read-only. Note: A report can have only one color palette. How To... 4-75 Topics Oracle CDE1 color palette, Default color palette, and Grayscale color palette in the Reference Color and Pattern Palettes section of the Oracle Reports online Help.

4.9.6.6 Importing or exporting a color palette

To import or export a color palette:

1. First, make the color palette editable:

■ Choose Edit Preferences, and set Color Mode to Editable, as described in Section 4.2.6, Setting color palette preferences . ■ Shut down and restart Oracle Reports Builder to enable the Editable mode.

2. In the Paper Layout view, choose Format Color Palette Import or Format

Color Palette Export .

3. In the dialog box, specify the name and format of the file.

4. Click OK.

See also Section 2.4.5, About changing colors and patterns Topics Oracle CDE1 color palette, Default color palette, and Grayscale color palette in the Reference Color and Pattern Palettes section of the Oracle Reports online Help.

4.9.6.7 Highlighting a value