Tuesday, November 29, 2011

How to setup network printer in Oracle Apps R12

How to do printer setup in Oracle Application R12.

It is mainly required for automatic printing of concurrent request output. For this setup you have to setup a network printer in the Oracle Application. For setting up the printer you have to do the following activities.

First you have to install the printer at os level.

- Download CUPS software
- Download the driver for your printer
- Add the printer

Once the instllation has been done you have ot check the printer from the command line that you are able to print a file.

This can be tested by the lp command.

lpstat -a
printer accepting requests since Fri 25 Nov 2011 05:34:15 PM IST

lpstat -t
scheduler is running
system default destination: printer
device for printer: lpd://192.168.1.26
printer accepting requests since Fri 25 Nov 2011 05:34:15 PM IST
printer printer is idle.  enabled since Fri 25 Nov 2011 05:34:15 PM IST

Go to http://www.cups.org and download the latest software and install it into the os.

Download the printer driver rpm and install it there in the server. 

Configure the printer at OS level. Once done test the printer using the lp command.

lp <filename>

Then go to command promt, and modify the pasta_pdf.cfg file according to the requirement.

cd $FND_TOP/resource

cp   pasta_pdf.cfg   pasta_pdf.cfg_orig

vi pasta_pdf.cfg

Existing one - old value

"

preprocess=pdftops {inline}  {outline}

"

New one - New value for PDF printing

"

preprocess=pdf2ps {inline}  {outline}

"

Register the Printer in Oracle Applications

Navigation: System Administrator ==>> Install ==>> Printer

We need to Register the Printer with the same name which has been derived at the Linux BOX level, 

If Driver is not already setup you have to setup the printer driver.

Navigation: System Administrator ==>> Install ==>> Printer ==>> Driver

In this we will be having four options where we can define a Custom Printer as well as Custom
Printer Drivers for Printer.
We need to register a Printer in the following Steps: Driver ==>> Styles ==>> Types ==>> Register
In order to make use of PDF Printing Directly from a Concurrent Program we need to have
PASTA_PDF Driver existing in the Oracle Applications.
Navigation: System Administrator ==>> Install ==>> Printer ==>> Driver
Driver Name : PASTA_PDF
User Driver : Pasta PDF Driver
Description : Pasta driver to print pdf converted to PostScript by 3rd party utility
Driver Method : Program
Driver Method Parameters : Spool File
Program Name : FNDPSTAX
Arguments: -pn$PROFILES$.PRINTER -f$PROFILES$.FILENAME – c$PROFILES$.CONC_COPIES -Fpasta_pdf.cfg


Defining and Assigning the Printer at Concurrent Program Level
Let us consider the Example of Defining a printer for Concurrent Program.
Usually we define Portrait or Landscape for the Style in the Concurrent Program at Output Tab.
Here we need to specific PDF Publisher as the Style in Concurrent Program and as well we have to mention the Name of the Printer which was registered in the Oracle Applications.

Run this program to get the output at Printer Tray
Select Options to select printer name and give number of copies as 1
Bounce the Concurrent Managers in case things didn’t work

No comments:

Post a Comment

Command to do active duplicate for Oracle Database

1. First login to target server 2. Validate tns connectivity between Source DB and Target DB 3. Prepare and validate space availability 4. S...