General Printing Mechanism UNIX Printing Overview

10-4 Publishing Reports to the Web with Oracle Reports Services The following sample script adds a printer queue on the Solaris 2.6 platform. The domain information expldomain and printer names printer1 and printer2 are hard coded in this example. The printer is a Xerox DCS model. binsh echo Please enter the Printer Name Either printer1 or printer2\n read PRINTER LOGFILE=varadmconfig.log PATH=usrbin:usrsbin:PATH export PRINTER LOGFILE PATH lpsystem -t bsd expldomain LOGFILE 21 lpadmin -p PRINTER -s expldomainPRINTER -I any LOGFILE 21 mkdir -p usrXerox_DCS usrXerox_DCSoriginal chown -R 755 usrXerox_DCS usrXerox_DCSoriginal cp usrbinlp usrXerox_DCSoriginal mv usrbinlp usrbinlp.Xerox ln -s tmp usrXerox_DCStmp echo PRINTER usrXerox_DCSprinter.db cp usrlocalpackagesdc99cc23.txt usrXerox_DCS ln -s usrXerox_DCSdc99cc23.txt usrbinlp lpadmin -d PRINTER

10.2.2 Verifying the Printer Setup for Oracle Reports

To verify that your printer queue installed correctly:

1. Ensure that the PPD or HPD file used with the installed printer queue is available

in the following location: ORACLE_INSTANCEconfigFRComponentfrcommonguicommontkadminPPD ORACLE_INSTANCEconfigFRComponentfrcommonguicommontkadminHPD

2. Ensure that the font metrics, AFM or TFM files, installed on the printer are

available in the following location: ORACLE_HOMEguicommontkadminAFM ORACLE_HOMEguicommontkadminTFM

10.3 Configuring the Printing Environment

This section explains the various configuration steps to be performed on UNIX after printer installation. ■ Editing uiprint.txt File ■ Environment Variables ■ Print Property Dialog Boxes

10.3.1 Editing uiprint.txt File

As discussed in Section 10.1, UNIX Printing Overview , Oracle Reports creates logical printer drivers. To create these internal printer drivers, it needs information from you like the available printer queue, the type of driver to be used with the queue, the version of the driver, and the printer description file. uiprint.txt is the main file for providing this information. It is located in: INSTANCE_HOMEconfigFRComponentfrcommonguicommontkadminuiprint.txt Printing on UNIX with Oracle Reports 10-5 uiprint.txt is the printer configuration file and Oracle Reports reads it when it creates the internal printer drivers. You should modify this file for each instance of Oracle Reports. The format of entries in uiprint.txt is: Printer:DriverType:DriverVersion:PrinterDescription:PrinterDescriptionFile: This one line entry, in prescribed format, in uiprint.txt defines a printer to be used by Oracle Reports. Each line contains five fields separated by colons. Table 10–1 describes each element of the uiprint.txt entry. Table 10–1 uiprint.txt Entry Elements Element Description Printer Specifies the name of the printer or printer queue, as used with the lpr or lp command. To get a list of all available printers, use the following command: lpstat -a To check the status of the printer, use the lpstat command: Solaris lpstat -p printername Linux lpstat -p printername HP-UX lpstat -d printername HP Tru64 lpstat -p printername IBM AIX lpstat -pprintername No space is allowed after -p on IBM AIX. DriverType Specifies the type of printer driver used for the printer. The driver can be PostScript, PCL, or ASCII. DriverVersion Specifies the version of the driver type that should be used. This can be 1 or 2 for PostScript printers, and PCL Version 5 for PCL. PrinterDescription Specifies the description of the printer, for example, the speed and the location of the printer. This information is used for display in the printer-related dialog box.