Adding a template to the pre-defined templates list Creating an HTML template for a report portlet

How To... 4-111 See also Section 2.7.5, About the Template Editor Section 2.7.1, About templates Section 2.7.2, About template attributes Section 2.7.4, About inheritance in templates

4.12.8 Modifying the color, pattern, or border of body objects in a template

Template objects can be modified using the same techniques as report objects. To change the color or pattern of objects in a template, however, you use the template Property Inspector, rather than the Color tools in the tool palette: ■ The Fill Pattern property defines the pattern to use for the space enclosed by the objects. You can define the background and foreground colors of the fill pattern using the Foreground Color and Background Color properties. ■ The Edge Pattern property defines the pattern to use for the borders of the objects. You can define the background and foreground colors of the edge pattern using the Edge Foreground Color and Edge Background Color properties. ■ The Text Color property specifies the text color to use for the objects. See also Section 2.4.5, About changing colors and patterns Section 4.9.6.2, Changing colors Section 4.9.6.3, Changing patterns Section 2.7.1, About templates

4.12.9 Adding a template to the pre-defined templates list

To add your own template to the list of predefined templates in the Report Wizard: 1. In a text editor for example, Wordpad, open the preferences file: ■ On Windows, open ORACLE_ INSTANCE\config\FRComponent\frcommon\tools\admin\CAUPREFS. ORA user preferences if it exists; otherwise, open ORACLE_ INSTANCE\config\FRComponent\frcommon\tools\admin\CAGPREFS. ORA global preferences. ■ On UNIX, open your_home_directoryprefs.ora user preferences if it exists; otherwise, open ORACLE_INSTANCEconfigFRComponent frcommontoolsadminprefs.ora global preferences. 2. Scroll down to the template descriptions identified by Reports.xxx_ Template_Desc where xxx specifies a report style: Tabular, BreakAbove, BreakLeft, FormLetter, Formlike, MailingLabel, Matrix, MatrixBreak. 3. For each report style for which the template is defined: ■ To the Reports.xxx_Template_Desc list, add the description that you want to appear on the Template page of the Report Wizard. ■ To the corresponding Reports.xxx_Template_File list, add the file name of your template in the same position as the addition you made to the description list. 4-112 Oracle Reports Users Guide to Building Reports 4. Copy the template file filename.tdf to ORACLE_ HOMEREPORTSTEMPLATES. To include a sample image of your template in the Report Wizard: 1. Copy or create the .bmp file you want to use as the image for the template and name it yyy.bmp, where yyy is the file name of your template. 2. Copy each .bmp file to ORACLE_HOMEREPORTSTEMPLATES. See also Section 2.7.1, About templates Section 2.7.3, About applying templates

4.12.10 Creating an HTML template for a report portlet

To create and use an HTML template for a report that can be published on an Oracle Portal page: ■ See the How To Create a Report Portlet Template in Getting Started with Oracle Reports white paper, available on the Oracle Technology Network Oracle Reports page http:www.oracle.comtechnologyproductsreportsindex.html . Click Getting Started. In the list of topic sections on the left, click Index. On the Index page, in the Collateral Type list, choose White Papers How To Documents , and click Search. In the list that displays, click Creating a Report Portlet Template . See also Section 2.7.1, About templates Section 2.7.3, About applying templates

4.13 Use PLSQL in a Report or Template