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.

Configuring <strong>the</strong> Printing Environment<br />

The following sample script adds a printer queue on <strong>the</strong> Solaris 2.6 platform. The<br />

domain information expldomain and printer names printer1 and printer2 are<br />

hard coded in this example. The printer is a Xerox DCS model.<br />

#!/bin/sh<br />

echo "Please enter <strong>the</strong> Printer Name Ei<strong>the</strong>r printer1 or printer2\n"<br />

read PRINTER<br />

LOGFILE=/var/adm/config.log<br />

PATH=/usr/bin:/usr/sbin:$PATH<br />

export PRINTER LOGFILE PATH<br />

lpsystem -t bsd expldomain >$LOGFILE 2>&1<br />

lpadmin -p "$PRINTER" -s expldomain!"$PRINTER" -I any >$LOGFILE 2>&1<br />

mkdir -p /usr/Xerox_DCS /usr/Xerox_DCS/original<br />

chown -R 755 /usr/Xerox_DCS /usr/Xerox_DCS/original<br />

cp /usr/bin/lp /usr/Xerox_DCS/original<br />

mv /usr/bin/lp /usr/bin/lp.Xerox<br />

ln -s /tmp /usr/Xerox_DCS/tmp<br />

echo "$PRINTER" > /usr/Xerox_DCS/printer.db<br />

cp /usr/local/packages/dc99cc23.txt /usr/Xerox_DCS<br />

ln -s /usr/Xerox_DCS/dc99cc23.txt /usr/bin/lp<br />

lpadmin -d "$PRINTER"<br />

5.2.2 Verifying <strong>the</strong> Printer Setup for <strong>Oracle</strong> <strong>Reports</strong><br />

To verify that your printer queue installed correctly:<br />

1. Make sure that <strong>the</strong> PPD or HPD file used with <strong>the</strong> installed printer queue is<br />

available in <strong>the</strong> following location:<br />

ORACLE_HOME/guicommon9/tk90/admin/PPD<br />

ORACLE_HOME/guicommon9/tk90/admin/HPD<br />

2. Make sure that <strong>the</strong> font metrics, AFM or TFM files, installed on <strong>the</strong> printer are<br />

available in <strong>the</strong> following location:<br />

ORACLE_HOME/guicommon9/tk90/admin/AFM<br />

ORACLE_HOME/guicommon9/tk90/admin/TFM<br />

5.3 Configuring <strong>the</strong> Printing Environment<br />

This section explains <strong>the</strong> various configuration steps <strong>to</strong> be performed on UNIX after<br />

printer installation.<br />

■ Editing uiprint.txt File<br />

■ Environment Variables<br />

5.3.1 Editing uiprint.txt File<br />

■ Print Property Dialog Boxes<br />

As discussed in UNIX Printing Overview, <strong>Oracle</strong> <strong>Reports</strong> creates logical printer<br />

drivers. To create <strong>the</strong>se internal printer drivers, it needs information from you like <strong>the</strong><br />

available printer queue, <strong>the</strong> type of driver <strong>to</strong> be used with <strong>the</strong> queue, <strong>the</strong> version of <strong>the</strong><br />

driver, and <strong>the</strong> printer description file. uiprint.txt is <strong>the</strong> main file for providing<br />

this information. It is located in:<br />

ORACLE_HOME/guicommon9/tk90/admin<br />

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