01.02.2013 Views

Publishing Reports to the Web - Downloads - Oracle

Publishing Reports to the Web - Downloads - Oracle

Publishing Reports to the Web - Downloads - Oracle

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Elements of a Distribution XML File<br />

15.3.8 printer<br />

Table 15–5 (Cont.) Attributes of <strong>the</strong> file element<br />

Attribute Valid values Description<br />

instance this|all Default: all<br />

Used when <strong>the</strong> foreach element is also present.<br />

With a grouped report that is burst in<strong>to</strong> separate<br />

reports, instance specifies whe<strong>the</strong>r <strong>the</strong> groups<br />

will be broken in<strong>to</strong> separate files according <strong>to</strong> each<br />

group instance (this) or all contained within <strong>the</strong><br />

same file (all).<br />

Example<br />

On Windows<br />

<br />

<br />

<br />

On UNIX<br />

<br />

<br />

<br />

Required/Optional<br />

Optional. You can have as many printer elements as you require.<br />

Description<br />

Use <strong>the</strong> printer element <strong>to</strong> specify distributions <strong>to</strong> a printer. Printer elements have<br />

one sub-element: include. There must be at least one include sub-element and <strong>the</strong>re<br />

may be more between an open and close printer element.<br />

When used with <strong>the</strong> foreach element and <strong>the</strong> instance="this" attribute, <strong>the</strong><br />

printer element can distribute each group instance of a grouped report <strong>to</strong> a separate<br />

print job. For example, if you group a report on department_id, and <strong>the</strong>re are four<br />

departments, you can use <strong>the</strong> foreach/printer/instance="this" combination<br />

<strong>to</strong> generate four printed reports, each containing a separate department's report. In<br />

this case, <strong>the</strong> printer entry in <strong>the</strong> distribution XML file might look like this:<br />

<br />

<br />

<br />

<br />

<br />

In this example, all report sections (header, main, and trailer) must repeat on <strong>the</strong> same<br />

group instance (e.g., department_id).<br />

Table 15–6 lists and describes <strong>the</strong> attributes associated with a printer element.<br />

15-14 <strong>Oracle</strong> Application Server <strong>Reports</strong> Services <strong>Publishing</strong> <strong>Reports</strong> <strong>to</strong> <strong>the</strong> <strong>Web</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!