Oracle Applications Release 10.7 Printing
Author: Andy Rivenes (arivenes@appsdba.com)
Copyright AppsDBA Consulting. All Rights Reserved.
Last Updated: 14 December, 1998
Overview
Oracle Applications supports both character mode and PostScript
(e.g. bitmap) printing of Oracle Reports reports. This document will
outline the steps required to implement both types of printing.
Oracle Applications implements Oracle Reports printing by printing
to a file. This is important to note because it affects the parameters
that are passed to the Oracle Reports executable. Once the file has been
created it may or may not be printed depending on the parameter COPIES.
The report output will be located in the $APPLCSF/$APPLOUT directory.
If $APPLCSF is not set then the report will be located in the product top
directory/$APPLOUT (e.g. $GL_TOP/out).
Reports 2.5 Requirements (Server installation)
Bitmap Printing
Motif option (e.g. GUI) must be installed. This can be verified by
checking to see if the Motif runtime executable for Reports 2.5 has been
created (e.g. $ORACLE_HOME/bin/r25runm). The actual Oracle Applications
executable is ar25runb and will be located in $FND_TOP/bin. If this
executable does not exist and the Motif option for Reports 2.5 has been
installed then adrelink can be used to create the ar25runb executable
(e.g. adrelink force=y ranlib=y "FND ar25runb").
The file uiprint.txt must be modified. This file is located in
$ORACLE_HOME/guicommon2/tk23/admin
. This file provides a mapping between the type of printer and the
printer definition file (e.g. PPD). See the Developer/2000 Installation
Guide for further information.
Sample entry for uiprint.txt:
ptu2:PostScript:1:Postscript Printer:hpljet41.ppd:
Appropriate PPD (PostScript print definition) files must exist. PPD
files are located in the directory $ORACLE_HOME/guicommon2/tk23/admin/PPD.
The PPD file referenced in the example above is appropriate for a HP
Laserjet 4 at 600 dpi.
There are other Oracle Reports configuration files that control fonts
(e.g. $ORACLE_HOME/guicommon2/tk21/admin/
uifont.ali) and character sets (e.g.
$ORACLE_HOME/guicommon2/tk21/admin/Tk2Motif.rgb), but their use and description is beyond the scope
of this document. The recommended text for information about configuring the
options available is the Developer/2000 Installation Guide.
Character Printing
No requirements. No uiprint.txt entry is needed or used, and no
PPD files are required.
Oracle Applications Product File Requirements
Bitmap Printing
No file requirements. The following environment variable should be
set as part of the applmgr setup:
PRINTER=<printer>;export PRINTER
This is used by Reports 2.5 to map to the appropriate PPD file in the
uiprint.txt file.
Oracle Reports 2.5 supports three different environment variables for
determining the printer,
TK2_PRINTER
, ORACLE_PRINTER
, or PRINTER. We recommend using the PRINTER environment variable since this is a
standard UNIX convention and less confusing.
Character Printing
SRW print style definition. For character mode printing with Oracle
Reports there needs to be a print style definition in the $FND_TOP/srw
directory. This file defines printer specific codes for landscape, bold,
underline, etc., and is named with the format <SRW driver>.prt.
Oracle Applications Requirements
Bitmap Printing
For bitmap printing the printer associated with the
print request MUST be defined and available at the host level. The
Reports 2.5 engine not only requires that the definitions be available
(e.g. defined in uiprint.txt and PPD file assigned), but that the printer be
available at the host level (e.g. there is some
communication that takes place).
Concurrent Program Requirements
(e.g. \Navigate\Concurrent\Program\Define)
Concurrent programs must be registered with "Execution Options" set to
Version=2.0b (Note: not Version=b).
Print Style Requirements (e.g. \Navigate\Install\Printer\Style)
The SRW driver must be set to the printer name in the uiprint.txt file
for the type of printer being used. This is passed to the print command
so that the appropriate PPD file can be found to create the PostScript
file.
This definition will be used if COPIES=0 is set on the print request.
SRW driver = <printer name>
The file $FND_TOP/srw/<printer name>.prt is not used.
Print Driver Requirements (e.g. \Navigate\Install\Printer\Driver\Define)
The SRW driver field is not used, and no
$FND_TOP/srw/<SRW driver>.prt needs to exist.
The following fields should be set:
SRW Driver: <blank>
Driver Method: Command
Spool File: No
Standard Input: No
Program Name: <blank>
Arguments: lp -c -o raw -d$PROFILES$.PRINTER \
-n$PROFILES$.CONC_COPIES -t"$PROFILES$TITLE" \
$PROFILES$.FILENAME
Initialization: <blank> Reset: <blank>
Print Driver Assignment Requirements
(e.g. \Navigate\Install\Printer\Driver\Assign)
Assign the printer driver to the appropriate printer type and style.
Character Printing
Concurrent Program Requirements
(e.g. \Navigate\Concurrent\Program\Define)
None. The execution options field should be left blank.
Print Style Requirements (e.g. \Navigate\Install\Printer\Style)
The SRW driver field must be set to the appropriate
$FND_TOP/srw/<driver name>.prt name. This print style definition
will be used if Copies=0 is set on the print request.
Print driver Requirements
(e.g. \Navigate\Install\Printer\Driver\Define)
The SRW driver field must be set to the appropriate
$FND_TOP/srw/<driver name>.prt name. This driver definition will
be used if Copies is set greater than zero on the print request.
SRW Driver: HPP
Driver Method: Command
Spool File: No
Standard Input: Yes
Program Name: <blank>
Arguments: lp -c -d$PROFILES$.PRINTER \
-n$PROFILES$.CONC_COPIES -t"$PROFILES$TITLE" \
$PROFILES$.FILENAME
Initialization: /eE/e&l0o2a7C/e(s0t0p11H/e&a5L
Reset: /eE
Print Driver Assignment Requirements
(e.g. \Navigate\Install\Printer\Driver\Assign)
Assign the printer driver to the appropriate printer type and style.
Bitmap Printer Testing
For testing purposes the following command formats can be used at the
operating system to test printing. To enable debugging the environment
variable DEBUG_SLFIND can be set to create a file with debug information.
This command will print a PostScript file to a printer:
$FND_TOP/bin/ar25runb \
report=XXEMPASG.rdf \
<parameter name>=<parameter value>
userid=apps/apps \
batch=yes \
copies=1 \
mode=bitmap \
destype=printer \
desname=<printer name>
This command will print a PostScript file to a file (this emulates the
concurrent manager behavior):
$FND_TOP/bin/ar25runb \
report=XXEMPASG.rdf \
<parameter name>=<parameter value>
userid=apps/apps \
batch=yes \
mode=bitmap \
destype=file \
desname=mytest.lis \
desformat=<printer name>
Note: <printer> must be defined in
$ORACLE_HOME/guicommon2/tk23/admin/uiprint.txt and as a UNIX printer
(e.g. PRINTER environment variable).
NT Specific Issues
Remote Printer Definition
NT treats remote printers differently than UNIX and requires additional
setup steps. Concurrent manager printing in NT is done at the command
prompt level with the "print" command. In order to make a network printer
available to the print command it must be first redirected to a "local"
device like LPT1. The following command will accomplish this and should
be used in conjunction with the print command on the "Arguments" field of
the printer driver screen:
NET USE LPT1: \\<remote node>\<printer name>
Example:
NET USE LPT1: \\DGIC\HPLJ2D_Q
Ghostscript Usage
Overview
The UNIX utility ghostscript can be obtained as share/freeware for use in
converting PostScript created reports into PCL. This significantly cuts
down on the size of the report output and the time it takes to print on
HP type printers that support PCL. This can be especially significant
on slower network connections.
Environment Requirements
Once obtained and installed the following environment variable must be
set, see ghostscript documentation for proper values, in order for
ghostscript to find the correct fonts:
GS_FONTPATH=<gs fonts>;export GS_FONTPATH
GS_LIB=<gs fonts>; export GS_LIB
Example:
GS_FONTPATH=/usr/openwin/X11/fonts/Type1/outline:/opt/Aegs/share/fonts;
export GS_FONTPATH
GS_LIB=/usr/openwin/X11/fonts/Type1:/usr/openwin/X11/fonts/Type3:/opt/Aegs/share/fonts;
export GS_LIB
Print File Requirements
While not strictly required a print file script allows the execution of commands
and the passing of parameters.
Oracle Application Printer Driver Requirements
In order to invoke the ghostscript utility an appropriate printer driver
must be set up within Oracle Applications. This driver must then be
assigned to the PostScript style for each printer type used. The
following is an example:
Ghostview Usage
The UNIX utility ghostview can be used to allow viewing of bitmap reports.
This utility can be invoked by the GUI application to allow previewing
of bitmap reports. The profile option Editor (Postscript) must be set
to enable viewing.
|