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.

Printer-Related Files<br />

5.4.6 uiprint.txt<br />

uiprint.txt provides a convenient way for you <strong>to</strong> provide details about <strong>the</strong> printer<br />

queue, such as <strong>the</strong> type of printer driver and <strong>the</strong> printer description. You should edit<br />

uiprint.txt for each instance of <strong>Oracle</strong> <strong>Reports</strong>.<br />

5.4.7 Editing <strong>the</strong> Printer-Related Files<br />

See Also: Editing uiprint.txt File<br />

For more information about uiprint.txt<br />

The sections that follow describe how <strong>to</strong> edit <strong>the</strong> various print-related files.<br />

5.4.7.1 Editing PPD files<br />

In some cases, you may need <strong>to</strong> change certain attributes in your PPD file. The sections<br />

that follow describe some of <strong>the</strong> attributes that you would commonly need <strong>to</strong> change.<br />

5.4.7.1.1 Changing <strong>the</strong> default paper size Suppose that you need <strong>the</strong> page size <strong>to</strong> be A4<br />

for some of your reports. On Motif platforms, <strong>the</strong> printer driver is specified in<br />

uiprint.txt and <strong>the</strong> default page size is not necessarily set <strong>to</strong> A4. For example,<br />

hpljet41.ppd has LETTER as <strong>the</strong> default page size. Note that <strong>the</strong> default page size<br />

setting for each printer queue is taken from <strong>the</strong> corresponding PPD file.<br />

To set A4 as <strong>the</strong> default page size, you would do <strong>the</strong> following:<br />

1. Edit uiprint.txt <strong>to</strong> include a PostScript Printer Description file (extension is<br />

.ppd) that supports <strong>the</strong> A4 page size. For example, you might include<br />

hpljet41.ppd.<br />

2. As a backup, make a copy of hpljet41.ppd.<br />

3. Add an entry <strong>to</strong> uiprint.txt:<br />

Printer_name: PostScript:1: <strong>the</strong> printer on floor1:hpljet41.ppd<br />

4. Edit hpljet41.ppd and change <strong>the</strong>se settings as follows:<br />

DefaultPageSize: A4<br />

DefaultPageRegion: A4<br />

DefaultImageableArea: A4<br />

DefaultPaperDimension: A4<br />

5.4.7.1.2 Changing <strong>the</strong> printer margin settings To change <strong>the</strong> margins, you need <strong>to</strong> modify<br />

<strong>the</strong> ImageableArea section in <strong>the</strong> PPD file. ImageableArea provides <strong>the</strong> bounding box<br />

of <strong>the</strong> area in which <strong>the</strong> printer may print for <strong>the</strong> page size named mediaOption. There<br />

will be one statement for each named page size supported by <strong>the</strong> device.<br />

*DefaultImageableArea provides <strong>the</strong> mediaOption name of <strong>the</strong> default imageable area.<br />

Since <strong>the</strong>re can be only one default page size, this value should be <strong>the</strong> same as <strong>the</strong><br />

value of *DefaultPageSize, *DefaultPageRegion, and *DefaultPaperDimension.<br />

The syntax for defining imageable area is as follows:<br />

*ImageableArea mediaOption: "llx lly urx ury "<br />

*DefaultImageableArea: mediaOption | Unknown<br />

ll stands for lower left corner and ur for upper right corner. The bounding box value<br />

of *ImageableArea is given as four real numbers, representing <strong>the</strong> x and y coordinates<br />

of <strong>the</strong> lower left and upper right corners of <strong>the</strong> region, respectively, in <strong>the</strong> PostScript<br />

language default user space coordinate system. The x and y axes of a given page size<br />

correspond <strong>to</strong> <strong>the</strong> x and y axes of that page size in <strong>the</strong> *PaperDimension entry.<br />

5-12 <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!