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.

Frequently Asked Questions<br />

2. If you have multiple printer queue entries in uiprint.txt and you need <strong>to</strong> set<br />

<strong>the</strong> default printer, verify that <strong>the</strong> environment variable is set <strong>to</strong> a printer that is<br />

listed in uiprint.txt. If <strong>the</strong> related environment variable is not set, <strong>the</strong>n <strong>the</strong> first<br />

entry in uiprint.txt is used. For more information about printer related<br />

environment variables, refer <strong>to</strong> Environment Variables.<br />

If <strong>the</strong>re is no printer available for your system, refer <strong>to</strong> Configuring <strong>the</strong> Printing<br />

Environment for alternatives.<br />

Error while printing <strong>to</strong> a printer with spaces in its name<br />

Cause<br />

If you are on Solaris 2.8 and have printers that have spaces in <strong>the</strong> names, you may<br />

encounter a bug that causes an error resulting from <strong>the</strong> lpr/lp command including<br />

quotes around <strong>the</strong> printer name.<br />

Solution<br />

To resolve this issue, you must do ei<strong>the</strong>r one of <strong>the</strong> following:<br />

■ Remove <strong>the</strong> spaces in <strong>the</strong> printer’s name.<br />

■ Install <strong>the</strong> Solaris 2.8 patch from Sun Microsystems that fixes <strong>the</strong> lpr/lp command<br />

so that quotes can be used in printers names.<br />

and<br />

■ Modify <strong>the</strong> section of rwlpr.sh that provides <strong>the</strong> workaround for including quotes,<br />

in order <strong>to</strong> make accessible any printer that has a space in <strong>the</strong> name. The rwlpr.sh<br />

file is located in <strong>the</strong> ORACLE_HOME/bin direc<strong>to</strong>ry.<br />

Specifically, make <strong>the</strong> following changes:<br />

#ei<strong>the</strong>r LPR or LP Command was found<br />

if [ -x $PRNCMDPATH ]<br />

<strong>the</strong>n<br />

if [ `basename $PRNCMDPATH` = "lpr" ]<br />

<strong>the</strong>n<br />

#if [ `/usr/bin/uname -r` = "5.8" ]<br />

#<strong>the</strong>n<br />

#$PRNCMDPATH `echo $@ | tr -d "\""`<br />

#else<br />

$PRNCMDPATH "$@"<br />

#fi<br />

else<br />

# parse and Fix <strong>the</strong> command Line as Required by lp<br />

#if [ `/usr/bin/uname -r` = "5.8" ]<br />

#<strong>the</strong>n<br />

#getLpCommandLine `echo $@ | tr -d "\""`<br />

#else<br />

getLpCommandLine "$@"<br />

#fi<br />

$PRNCMDPATH<br />

fi<br />

# exit with <strong>the</strong> command's exit code , This will tell <strong>the</strong><br />

# server Print module if <strong>the</strong> command completed successfully<br />

# or not.<br />

exit $?<br />

fi<br />

done<br />

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