Advanced Imaging Support Removing DISPLAY and Printer Dependencies on UNIX

Printing on UNIX with Oracle Reports 10-25 ■ The printer queue and uiprint.txt entry syntax must be valid. If the printer validation fails, refer to the environment variables TK_PRINT_ STATUS and REPORTS_NO_DUMMY_PRINTER in Appendix B, Environment Variables . REP-00826 - Invalid printer driver xxx specified by parameter desformat. REP-00177 - Error while running in remote server When run through CGI Cause: An invalid value was specified for DESFORMAT for the specified report execution mode. Action: The DESFORMAT parameter specifies which output format is needed. Valid formats are: ■ For bitmapped reports, any of the output formats supported by Oracle Reports PostScript, PCL, PDF, HTML, XML, HTMLCSS, ENHANCEDSPREADSHEET, SPREADSHEET is valid for DESFORMAT. You should not give the PRT file names here. While running to a file, the DESFORMAT parameter needs to be set to a valid printer queue. Oracle Reports uses the printer definition file associated with the printer to format the output. ■ For character mode reports, DESFORMAT sets up the output for ASCII printers and passes escape characters. For running character mode reports, ensure that you change the MODE parameter to Character and use any valid .PRT file. Table 10–7 maps the command line options DESTYPE, DESNAME, and DESFORMAT to the printer by what you are trying to achieve. REP-01800 - Formatter error. REP-00177 - Error while running in remote server When run through CGI Cause: The error indicates that a printer configuration issue has occurred on a UNIX server. Even if there is not a physical printer available on the system, you have to set it up as if there was one. Action: 1. Verify that there is a valid entry in uiprint.txt.

2. If you have multiple printer queue entries in uiprint.txt and you want to set

the default printer, verify that the environment variable is set to a printer that is Table 10–7 DESTYPE, DESNAME, and DESFORMAT Settings By Case Case DESTYPE DESNAME DESFORMAT Generating to a file FILE file_name.ps printer_name Printing PRINTER printer_name DISTRIBUTE=YES printer_name MODE=CHARACTER file_name.prt 10-26 Publishing Reports to the Web with Oracle Reports Services listed in uiprint.txt. If the related environment variable is not set, then the first entry in uiprint.txt is used. For more information on printer-related environment variables, refer to Appendix B, Environment Variables . If there is no printer available for your system, refer to Section 10.3, Configuring the Printing Environment for alternatives. Error while printing to a printer with spaces in its name Cause: If you are on Solaris 2.8 and have printers that have spaces in the names, you may encounter a bug that causes an error resulting from the lprlp command including quotes around the printer name. Action: To resolve this issue, you must do either one of the following: ■ Remove the spaces in the printers name. ■ Install the Solaris 2.8 patch from Sun Microsystems that fixes the lprlp command so that quotes can be used in printers names. and ■ Modify the section of rwlpr.sh that provides the workaround for including quotes, in order to make accessible any printer that has a space in the name. The rwlpr.sh file is located in the ORACLE_INSTANCEconfigreportsbin directory. Specifically, make the following changes: either LPR or LP Command was found if [ -x PRNCMDPATH ] then if [ `basename PRNCMDPATH` = lpr ] then if [ `usrbinuname -r` = 5.8 ] then PRNCMDPATH `echo | tr -d \` else PRNCMDPATH fi else parse and Fix the command Line as Required by lp if [ `usrbinuname -r` = 5.8 ] then getLpCommandLine `echo | tr -d \` else getLpCommandLine fi PRNCMDPATH fi exit with the commands exit code , This will tell the server Print module if the command completed successfully or not. exit ? fi done