Skip Headers
Oracle® Fusion Middleware Oracle Reports User's Guide to Building Reports
11g Release 1 (11.1.1)

Part Number B32122-02
Go to Documentation Home
Go to Book List
Book List
Go to Table of Contents
Go to Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Go to next page
PDF · Mobi · ePub

37.3 Edit the Distribution XML Definition

The Oracle Reports distribution XML file enables you to specify the details of your distribution. For example, if you are distributing through e-mail, you can specify such details as the addressee, the reply to address, and the subject.

In this section, you will learn how to modify a distribution XML file. We have indicated locations where you need to enter your own information to make the distribution work.

When you want to distribute a report, you need to either:


For more information on distribution, see the chapter "Creating Advanced Distributions" in the Oracle Fusion Middleware Publishing Reports to the Web with Oracle Reports Services manual.

To edit the distribution XML file:

  1. In a text editor, such as Notepad, open the sample distribution.xml file we have provided.

  2. Find the placeholder text: <YourFilePath>, and replace it with the location of where your resulting PDFs will be stored.

    Example: Replacing the placeholder text with:


    changes the path to:


    Using this complete path places the resulting PDF files in d:\temp.

  3. Find the placeholder text: <OriginEmailAddress>, and replace it with the sender's e-mail address.

  4. Perform step 3 for all instances of the placeholder text: <OriginEmailAddress>.

  5. Find the placeholder text: <DestinationEmailAddress>, and replace it with the recipient's e-mail address.

  6. Perform step 5 for all instances of the placeholder text: <DestinationEmailAddress>.


    For this example, we show you how to send e-mails to static e-mail addresses. However, if you want to send the report to various e-mail destinations, you must create a recipient field in your data model. Then, in the ex2 section of distribution.xml, replace the placeholder text <DestinationEmailAddress> with &amp;&lt;recipient&gt;. You can then delete the first section of the distribution.xml file (marked ex1).
  7. Save the XML file to the same directory where you have saved inventoryreport_dist_your_initials.rdf.


    It is not required that you save the XML file to the same directory where your RDF is located, as you can specify the location of the XML file at runtime. Either distribution.xml and RDF must be in Reports Path, or provide the complete path in the command line URL.

    You have finished customizing the distribution XML file to send a single e-mail to corporate headquarters with all of the individual warehouse reports, and multiple e-mails with a single attachment each to the individual warehouses.