Editing the Printer-Related Files

Printing on UNIX with Oracle Reports 10-15 Font CodedreineunBold: Standard 00.1001 Standard ROM

10.4.7.1.4 Overriding the printer tray setting The PostScript output generated by Oracle

Reports has the tray information embedded into it. The PPD file defines the default tray to be used and is followed by the definitions of valid trays for the printer. To print to a different tray, the DefaultInputSlot entry in the PPD file must be updated. In the PPD file, you should find a section that lists the default tray and the valid input slots. The section typically starts with a line like this one: OpenUI InputSlot: PickOne The default tray entry looks like the following: DefaultInputSlot: Lower The defined slots typically follow the default entry and look like the following: InputSlot UpperMultipurpose Tray: ... InputSlot LowerPaper Cassette: The section ends with a line like the following: CloseUI: InputSlot You can set DefaultInputSlot to be any of the values in the list of defined slots.

10.4.7.2 Editing HPD files for PCL printing

In some cases, you may need to change certain attributes in you HPD file. The sections that follow describe some of the attributes that you would commonly want to change: ■ Changing the paper size ■ Adding a new font entry

10.4.7.2.1 Changing the paper size For example, to change the papersize to A4, add the

following to the HPD file used: defaultpaper=A4

10.4.7.2.2 Adding a new font entry As with PostScripts AFM files, every HP font must

have a TFM file in order for Oracle Reports to use it. The font vendor should provide TFM files. You should add new fonts to the HPD file when you install them. You must specify the following settings in the HPD file for any new font: FONT={fontname} {fontname} is a descriptive name for the font tfm={tfm-filename} {tfm-filename} is the base filename for TFM file

10.5 Enhanced Printing on Linux Using CUPS

Common UNIX Printing System CUPS is the default printing system on most Linux distributions. This section describes how to set up CUPS for printing from Reports Server. Note: The font name entries in HPD files must be unique. 10-16 Publishing Reports to the Web with Oracle Reports Services CUPS printing is disabled by default. To enable CUPS printing, set the environment variable REPORTS_CUPS_PRINTING to YES. For more information, see Appendix B.1.40, REPORTS_CUPS_PRINTING . The primary advantage of CUPS is that it is a standard and modularized printing system that can process numerous data formats on the print server and also supports Internet Printing Protocol IPP. With this feature, it is possible to directly print PDF files from Reports Server and it also simplifies network printing. Figure 10–3 shows how Oracle Reports interacts with CUPS. Figure 10–3 Interaction Between Oracle Reports and CUPS Server With this configuration, printers must be configured on all the CUPS running on all the machines where Reports Server is running. Several text files are used to configure CUPS. For more configuration-related information, see the CUPS Software Administrators Manual at http:www.cups.orgdoc-1.1sam.htmlCONTENTS . By default, CUPS does not allow access from other network machines. To configure CUPS to allow access from remote machines, perform the following steps: 1. Enter the following command to open a CUPS configuration file: open etccupscupsd.conf 2. Add a Listen instruction, as follows: a. Scroll to the bottom of the configuration file where the other Listen instructions are declared. b. Copy Listen 127.0.0.1:631 and paste it above or below the original. c. Replace 127.0.0.1 with the Linux server’s IP address. 3. Configure each printer, as follows: a. In the configuration file, locate: Location printersyour_printer_queue b. Comment the instruction Deny From All. c. Change Allow from 127.0.0.1 to Allow from All. Printing on UNIX with Oracle Reports 10-17 d. Repeat for all printer or fax queues that you wan to make accessible. 4. Save the configuration file and restart CUPS. ■ To stop CUPS, enter the following command: etcrc.dinit.dcups stop ■ To start CUPS, enter the following command: etcrc.dinit.dcups start The Red Hat Advanced Server provides a configuration wizard to help you set up your printers. To use the configuration wizard for this task, perform the following steps: 1. While logged on as the root user, open a command prompt and enter: redhat-config-printer to display the Printer configuration window.

2. Select the New tab to launch the Add a new print queue wizard.

3. Follow the wizard prompts to: ■ Enter a queue name. ■ Select the queue type. ■ Select the printer model.

4. Review your selections and click Apply to create your new print queue.

5. Test your printer on CUPS, as follows: ■ Launch a browser on RedHat with the URL http:localhost:631. ■ Select the Printers tab. The printer you just created will be listed. ■ Click Print Test Page to test your printer setup. If the test page does not print, repeat the configuration steps. Ensure that your printer type and model selections are correct.

10.5.1 Setting Up a Single Server for Printing

The default CUPS configuration is to use localhost as the print server. To make the CUPS use a remote server, you must change the server name in the etccupsclient.conf file. Figure 10–4 illustrates adding printers to a single CUPS server, and configuring all other machines running Reports Server to route their print requests to the remote CUPS server. Note: lpadmin can also be used to add a printer from the command line. Refer to the Linux man page for this command for more details. 10-18 Publishing Reports to the Web with Oracle Reports Services Figure 10–4 Routing Print Requests to a Single Remote CUPS Server For information about the various other printing models, refer to the CUPS Software Administrators Manual at http:www.cups.orgdoc-1.1sam.htmlCONTENTS

10.6 Globalization Support

This section explains multibyte character set printing support in Oracle Reports. It also explains the IX and PASTA utilities, which are supported only for Oracle Reports when installed and used in conjunction with Oracle Applications. ■ Multibyte Character Set Printing ■ Overview of IX and PASTA

10.6.1 Multibyte Character Set Printing

Oracle Reports does not currently support Unicode character sets in PostScript output. As an alternative, you can use Oracle Reports PDF output desformat=pdf, which supports multibyte character sets, and print it. Oracle Reports supports a set of encoding schemes for the AFM files for the multibyte character sets. The fonts must be installed on the printer that prints the PostScript report output. Note: When Oracle Reports adds a printer to the CUPS server, it assigns a printer name, which is the name that must be used when referring that printer. Internally, the name is translated to the proper call depending on the device URI used in the configuration. See Also: Chapter 9, Managing Fonts in Oracle Reports and Chapter 11, Using PDF in Oracle Reports for more font-related information.