printer Examples Distribution XML File Examples

20-28 Publishing Reports to the Web with Oracle Reports Services destination=filename.xml distribute=yes where filename is the name of the distribution XML file. You are required to specify either the relative or absolute path of the XML file. For example, for Windows, you might specify: destination=c:\ORACLE_HOME\reports\distribution\filename.xml distribute=yes For UNIX, you might specify: destination=ORACLE_HOMEreportsdistributionfilename.xml distribute=yes For example, the full command in a URL would be similar to: http:your_server:portreportsrwservlet?report=rep.jspuserid=db_credentials destination=ORACLE_HOMEreportsdistributiondistribution.xmldistribute=yes The paths in these examples are used for illustrative purposes only. There is no requirement for where you store your distribution XML files. You can store them wherever you like. For detailed information on running reports from command lines and URLs and using the cgicmd.dat file, see Chapter 18, Running Report Requests .

20.7 Limitations with Using Distribution

This section outlines the limitations with using distribution in Oracle Reports: ■ Delimited Output ■ Dynamic Format Values

20.7.1 Delimited Output

■ Report bursting and distribution does not support Delimited output format. You cannot specify DELIMITED as an output format in a distribution XML file or in the Distribution dialog box. Note: In some cases, Microsoft Internet Explorer ignores the mimetype of a URLs return stream and instead sets the type by looking at the URL. This can be a problem when you are using the distribution feature of Oracle Reports Services because your URL might end with the destination parameter; for example: ...distribute=yes destination=c:\oracle\reports\distribution\mydist. xml In this scenario, your URL ends with the extension .xml and Internet Explorer treats the return stream as XML, when in fact it is HTML. As a result, you will receive a browser error. To work around this issue, you should never use recognized file extensions at the end of a URL. In the preceding example, you could switch the positions of the distribute and destination parameters in your URL. Creating Advanced Distributions 20-29

20.7.2 Dynamic Format Values

XML distribution supports only static values for the format attribute as seen in distribution.dtd. Thus, you cannot specify lexical parameters to be resolved at runtime for the format attribute. Hence the format cannot be dynamically determined either for the entire report or for a specific section. Note: You can distribute a report in DelimitedData output format, specified either in a distribution XML file or in the Distribution dialog box in Reports Builder 20-30 Publishing Reports to the Web with Oracle Reports Services