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.

5.7.2 PCL Printing Issues<br />

Frequently Asked Questions<br />

Why do fields that appear as gray on my PC print as white on a UNIX PCL<br />

printer?<br />

PCL color printing is not supported. When <strong>the</strong> pattern is set <strong>to</strong> transparent, PCL<br />

printing uses <strong>the</strong> white pen (in PCL language) <strong>to</strong> draw. When <strong>the</strong> pattern is set <strong>to</strong> a<br />

solid pattern, it uses <strong>the</strong> black pen. This behavior occurs irrespective of what color is<br />

set for <strong>the</strong> foreground or background. PostScript printing logic is different. It uses <strong>the</strong><br />

foreground color set when <strong>the</strong> pattern is solid and <strong>the</strong> background color set when <strong>the</strong><br />

pattern is transparent.<br />

What PCL level is supported in <strong>Oracle</strong> <strong>Reports</strong>?<br />

The <strong>Oracle</strong> <strong>Reports</strong> PCL driver currently supports <strong>the</strong> features of PCL Level 3. It does<br />

support HPD files for later PCL versions, but it will not honor <strong>the</strong> additional features<br />

introduced since PCL Level 3.<br />

5.7.3 PostScript Printing Issues<br />

What is <strong>the</strong> work around for duplex printing on PostScript printers?<br />

You should have a printer with a duplex option and an appropriate PPD file. The<br />

example that follows was tested with a PPD file for <strong>the</strong> Kyocera FS-9000 printer. You<br />

also need <strong>the</strong> UNIX sed <strong>to</strong>ol named <strong>to</strong> filter <strong>the</strong> output file.<br />

The problem with duplexing is that it is enabled at <strong>the</strong> job level, but it gets reset in <strong>the</strong><br />

page setup because <strong>the</strong> paper size and printer tray information are generated for every<br />

page. To work around this problem, you need a script that removes <strong>the</strong> page level<br />

setup information <strong>to</strong> avoid resetting <strong>the</strong> duplex setting. A side effect of this work<br />

around is that you cannot switch <strong>the</strong> printer tray between pages.<br />

1. Write a sed script with <strong>the</strong> following three lines:<br />

/^%%BeginPageSetup/,$ {<br />

/^%%BeginFeature/,/^%%EndFeature/d<br />

}<br />

2. Save <strong>the</strong> script <strong>to</strong> a file named duplexsed.<br />

3. Copy duplexsed <strong>to</strong> an appropriate direc<strong>to</strong>ry, such as ORACLE_HOME/bin.<br />

4. Set <strong>the</strong> environment variable TK_PRINT as follows:<br />

TK_PRINT="sed -f $ORACLE_HOME/bin/duplexsed | lpr -l -s -P'%n' -#'%c'"<br />

export TK_PRINT<br />

Note: Print commands differ for various kinds of UNIX. Check<br />

your installation guide and man pages for your platform. Refer <strong>to</strong><br />

Environment Variables for a description of TK_PRINT.<br />

The command s<strong>to</strong>red in TK_PRINT is only executed if<br />

DESTYPE=PRINTER. If DESTYPE=FILE, you still get a PostScript<br />

file with page level setup information. You can run <strong>the</strong> duplexsed<br />

script against <strong>the</strong> PostScript file <strong>to</strong> correct it.<br />

What Postscript level is supported in <strong>Oracle</strong> <strong>Reports</strong>?<br />

<strong>Oracle</strong> <strong>Reports</strong> supports PostScript Level 1 and 2.<br />

Printing on UNIX with <strong>Oracle</strong> <strong>Reports</strong> 5-21

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

Saved successfully!

Ooh no, something went wrong!