mail Examples Distribution XML File Examples

Creating Advanced Distributions 20-25

20.5.4.1.2 UNIX

printer id=a80 name=10th_floor_printer include src=report printer

20.5.4.2 Print Two Sections of a Report

In this example, two sections of a report will be sent to the printer.

20.5.4.2.1 Windows

printer id=a1 name=\\neptune\prtr20 include src=headerSection include src=mainSection printer

20.5.4.2.2 UNIX

printer id=a1 name=10th_floor_printer include src=headerSection include src=mainSection printer

20.5.4.3 Print Grouped Report

In this example, one report will be printed. The report will be grouped by, for example, department_id. For this to work, all sections of the report must repeat on the same group.

20.5.4.3.1 Windows

foreach printer id=prt20 name=\\neptune\prtr20 instance=all include src=report printer foreach

20.5.4.3.2 UNIX

foreach printer id=prt20 name=10th_floor_printer instance=all include src=report printer foreach

20.5.4.4 Print Combined Sections for Each Group Instance

This example will yield a number of print jobs: one for each group instance. The combined sections must repeat on the same group. If the report repeats on department_id, and you have four departments, 10 through 40, you will end up with four print jobs: one for department 10; one for department 20; and so on. The main and trailer sections must both repeat on department_id.

20.5.4.4.1 Windows

foreach printer id=prt20 name=\\neptune\prtr20 instance=this include src=mainSection include src=trailerSection printer foreach 20-26 Publishing Reports to the Web with Oracle Reports Services

20.5.4.4.2 UNIX

foreach printer id=prt20 name=10th_floor_printer instance=this include src=mainSection include src=trailerSection printer foreach

20.5.4.5 Print Relevant Instance of a Report to Its Relevant Printer

For this example to work, the repeat on group must contain a column of printer names appropriate to the host platform for example, the printer_name column must contain an appropriate printer alias on UNIX and a printer servername combination on Windows. For example, if the report is grouped by department_id, then G_ department_id must also have a printer_name column. Assuming the printer_ name is tied to a department, then department 10s report would be printed on department 10s printer; department 20s report would be printed on department 20s printer; and so on. foreach printer id=a60 name=amp;printer_name instance=this include src=mainSection printer foreach Each group instance equals a separate print job. Each print job goes to the relevant departments printer

20.5.5 destype Examples

You can use destype to define a custom destination or pluggable destination that can be used by Oracle Reports during distribution. For more information, see Section 20.4.9, destype . The examples in this section include the following destinations: ■ Oracle Portal Destination ■ FTP Destination ■ WebDAV Destination ■ Fax Destination

20.5.5.1 Oracle Portal Destination

This example shows the generic tag structure for sending report output to the Oracle Portal destination. When you push report output to Oracle Portal using DESTYPE=ORACLEPORTAL, the report output is created in the PAGEGROUP folder. destinations destype id=customforPortal name=oraclePortal property name=outputpage value=sample_report property name=statuspage value=Reports_Status property name=pagegroup value=REPORTS_OUTPUT property name=itemtitle value=MyReport include src=report destype See Also: Appendix A, Command-Line Keywords for more information on the properties shown in the examples. Creating Advanced Distributions 20-27 destinations

20.5.5.2 FTP Destination

This example shows the generic tag structure for sending report output to the FTP destination. destinations foreach destype id=ftp1 name=ftp instance=this format=pdf property name=desname value=ftp:username:passwdftpServerdirmyreport_amp;lt; DEPARTMENT_NAMEgt;.pdf include src=mainSection destype foreach destinations

20.5.5.3 WebDAV Destination

This example shows the generic tag structure for sending report output to the WebDAV destination. destinations foreach destype id=webdav1 name=webdav instance=this format=pdf property name=desname value=http:user:passwdWebDAVServerdirmyreport_amp;lt; DEPARTMENT_NAMEgt;.pdf include src=mainSection destype foreach destinations

20.5.5.4 Fax Destination

This example shows the generic tag structure for sending report output to the fax destination. destype id=faxdest name=fax property name=number value=123456789 include src=report destype Alternatively, for ease of use, you can specify a custom, more specific tag structure: fax id=faxdest number=123456789 include src=report fax

20.6 Using a Distribution XML File at Runtime

The method for using a distribution XML file at runtime is essentially the same whether you use it in a URL or a command line. Include the options: Note: All you must do after you modify the distribution.xsl file is, save it back to the same location under the same file name. Oracle Reports will automatically look for this file when resolving distributions.