Running a report from the command line Running a report using a command file Running a report to a remote Reports Server Generating HTML or HTMLCSS output

4-32 Oracle Reports Users Guide to Building Reports 5. In the Runtime Parameter Form, click the Run Report button in the toolbar. 6. If a dialog box appears, enter required information. Usage notes ■ If you want the orientation of the report to be landscape, you must change the orientation for the report see Section 4.7.14, Changing orientation . However, if your printer does not support the specified page size, you may get truncated results. To enable character-mode printers to support landscape or other page sizes, you can set printer escape sequences in the printer definition files. Refer to your printer documentation for the escape sequences to use. ■ When you view the report output in Microsoft Word, you must choose View Page Layout to see all the graphics and objects in your report. See also Section 4.11.6, Selecting parameters to include in the Runtime Parameter Form

4.7.2 Running a report from the command line

To run a runfile .rep or a report definition file .rdf from the command line on Windows: 1. Type ORACLE_HOME\BIN\rwrun, followed by the report name and desired arguments.

2. If you sent the output to a file DESTYPE=FILE DESNAME=filename

DESFORMAT=fileformat, open or print the file to verify the output. See also Section 1.12, Oracle Reports Components Topic rwrun in the Reference section of the Oracle Reports online Help Section 2.8.2, About batch reporting

4.7.3 Running a report using a command file

To run a report using a command file on Windows: 1. Create a text file using a word processor of your choice. 2. In the file, type ORACLE_HOME\BIN\rwrun, followed by the report name and desired arguments. 3. Name the file filename.bat. 4. To run the report, type filename.bat on the command line. 5. If you sent the output to a file DESTYPE=FILE DESNAME=filename DESFORMAT=HTML, open or print the file to verify the output. Note: The configuration file ORACLE_ HOME \reports\conf\rwbuilder.conf must include the plug-in parameter mailServer for example, pluginParam name=mailServersmtp01.mycorp.compluginParam with the outgoing mail server name. This applies in both the Windows and Solaris environments. How To... 4-33 See also Section 2.8.2, About batch reporting Section 1.12, Oracle Reports Components Topic rwrun in the Reference section of the Oracle Reports online Help.

4.7.4 Running a report to a remote Reports Server

To run a report to a remote Reports Server: ■ Type ORACLE_HOME\bin\rwclient, followed by the report name, server name, and desired arguments. For additional information, see the Oracle Fusion Middleware Publishing Reports to the Web with Oracle Reports Services manual.

4.7.5 Generating HTML or HTMLCSS output

To apply external style sheets and user-defined styles to your report or report objects for HTMLCSS output, you can set the following properties for information about these properties, see the Reference Properties section of the Oracle Reports online Help : ■ Style Sheets property ■ CSS Class Name property ■ CSS ID property To generate HTML or HTMLCSS output: 1. In the Object Navigator, select or open the report, then click the Run Paper Layout button in the toolbar to run the report. 2. In the Paper Design view, specify the scope of output you want to display: ■ To display only the current page of the report, choose File Preview Format Current Page . ■ To display all pages, choose File Preview Format All Pages. 3. To preview your HTML or HTMLCSS report output in a Web browser, choose File Preview Format Paginated HTML or Paginated HTMLCSS to format with style sheet extensions.

4. To save your report output as an HTML or HTMLCSS, choose File Generate to

File . See also Section 2.8.8, About HTML and HTMLCSS output Section 2.8.8.1, About HTML page streaming Section 2.2.11, About style sheets Note: If you choose to show all pages of your report output, and you have HTML page streaming enabled, the first page will display in your Web browser, and you will be able to quickly navigate to any other page in the rest of the report. 4-34 Oracle Reports Users Guide to Building Reports

4.7.6 Generating PDF output