In the Paper Layout view, click the Graph tool in the tool palette. Drag a square in the area where the graph should appear to display the Graph In the Graph Wizard, specify information for the graph. Click Help on any wizard In the Object Navigator, dou

How To... 4-85 1. In the Paper Design view or Paper Layout view, click the File Link tool in the tool palette. 2. Click and drag a rectangle. 3. Double-click the file link object to display the Property Inspector.

4. Under the File Link Boilerplate node:

■ Set the Source File Format property to Image URL. ■ Set the Source Filename property to the URL where the image is located with the required protocol. Example 1: Image URL HTTP:www.oracle.comimageslogo.gif Example 2: Image URL containing user parameter HTTP:P_SERVER_NAMEimageslogo.gif where P_SERVER_NAME is a user parameter of type CHAR. At runtime, the end user can specify a value for the parameter for example, P_SERVER_NAME=www.oracle.us.com for a dynamic URL link of http:www.oracle.us.comimageslogo.gif. Example 3: URL to a file FILE:c:imageslogo.gif

4.9.8.2 Adding a graph

To add a graph to your report, follow the steps in either of the following topics: ■ Adding a graph to a paper-based report ■ Adding a graph to a JSP-based Web report Usage notes Inserting a graph with a once-per-group position in the Paper Design view of a matrix with group report causes Oracle Reports Builder to fail. As a workaround, insert the graph in the Paper Layout view, rather than the Paper Design view, when adding a graph to a matrix with group report. See also Section 1.6.6, About the Web Source view Chapter 39, Building a Report with Graphs

4.9.8.2.1 Adding a graph to a paper-based report

To add a graph to your paper-based report:

1. In the Paper Layout view, click the Graph tool in the tool palette.

2. Drag a square in the area where the graph should appear to display the Graph

Wizard. Note: If you click Browse to find a file, Oracle Reports automatically prepends FILE: to the returned path. 4-86 Oracle Reports Users Guide to Building Reports

3. In the Graph Wizard, specify information for the graph. Click Help on any wizard

page for assistance. 4. Double-click the graph object you have created to display the Property Inspector, and set properties as desired. To customize your graph XML definition beyond the scope of the Graph Wizard, you can directly edit the XML in the graphs Graph Settings property. The full list of attributes available is defined in the DTD file, graph.dtd. 5. To re-enter the Graph Wizard, do either of the following: ■ Right-click the graph, and choose Graph Wizard. ■ Click the graph, then choose Edit Settings. 4.9.8.2.2 Adding a graph to a JSP-based Web report To add a graph to a JSP-based Web report:

1. In the Object Navigator, double-click the view icon next to the Web Source node

to display the source code in the Web Source view. 2. Locate the section in the source code where you want to add the graph.

3. Choose Insert Graph.

4. In the Graph Wizard, specify the information for the graph. Click Help on any tab

page for assistance. Note: When you specify a graph title, subtitle, footnote, or axis title in the Graph Wizard, you can insert lexical references to user parameters, system parameters, and columns in the text. For example, in the Show Title field on the Title page of the Graph Wizard, type: titletext P_1 to insert the value of the user parameter P_1 into the title text at runtime. The angle brackets are required around the parameter or column name. Note: The graph.dtd is available in the following locations: ■ ORACLE_HOME \jlib\bigraphbean.jar ■ In Getting Started with Oracle Reports on the Oracle Technology Network OTN: on the Oracle Reports page http:www.oracle.comtechnologyproductsrepo rtsindex.html , click Getting Started to display the Getting Started with Oracle Reports home page. In the list of topic sections on the left, click Index. In the Collateral Type list, choose Documentation and click Search. In the list that displays, find the Documented Graph DTD. Note: Previously adding some text such as Place the graph here to your Web page enables you to easily locate the correct position for your graph. How To... 4-87

5. Click the Run Web Layout button in the toolbar or choose Program Run Web