You are on page 1of 33

Managing Printers

Copyright 2003, Oracle. All rights reserved.

Objectives

After completing this lesson, you should be able to do the following: Define printer types Register a printer as a specific printer type Assign a print style and printer driver to a printer type Understand Pasta printing concepts Create a custom print style and printer driver Create a custom SRW driver

1-2

Copyright 2003, Oracle. All rights reserved.

Formatting Information
Document formatting (height, width)

Text formatting (bold, underline)

Printer formatting (portrait, landscape)

1-3

Copyright 2003, Oracle. All rights reserved.

Oracle Print Definition Components

Printer type describes printer. Printer style formats document. Printer driver formats output. SRW driver formats text.

1-4

Copyright 2003, Oracle. All rights reserved.

Relationships of the Printer Components

Print styles Page size orientation

Printer types

Printers

Reset Commands

Printer drivers

Make model LN03

Op sys name HP4FL1

1-5

Copyright 2003, Oracle. All rights reserved.

Defining Printers
Using predefined components Using custom components
Define new type (if needed) Define new style (if needed) Define new driver Register printer as predefined type Register printer as new type

1-6

Copyright 2003, Oracle. All rights reserved.

Finding Existing Printer Types


Before you can register a new printer, you need to decide its type. Use the Printer Types form to view existing combinations of print style and printer drivers to decide whether an existing printer type supports your new printer. Choose (M) View > Find All to see all the existing definitions.

1-7

Copyright 2003, Oracle. All rights reserved.

Registering a New Printer


To add a new printer for an existing printer type, simply register the printer in the Printers window. If you need to define a new printer type, the Printer Types button opens the appropriate window.

1-8

Copyright 2003, Oracle. All rights reserved.

Defining a New Printer Type


If an appropriate predefined printer type is not listed you can define a new type of printer. Assign a style and a printer driver to print a report in a specific style. The Style and Driver buttons open the appropriate windows where you can define these items.

1-9

Copyright 2003, Oracle. All rights reserved.

Printing with Pasta

The Pasta utility Converts text report files to Postscript Enables printing of custom Postscript reports from Oracle Handles multi-lingual text using UTF8 Has a simpler setup procedure - Printer Tupe, Printer Driver, and SRW driver files are provided

1-10

Copyright 2003, Oracle. All rights reserved.

Setup for Basic Printing with Pasta


Use the Printers window to register your printer Enter your printers name Select -- Pasta Universal Printer as the Printer Type

1-11

Copyright 2003, Oracle. All rights reserved.

The pasta.cfg file


The pasta.cfg file is an ASCII text file that controls many printing options.

1-12

Copyright 2003, Oracle. All rights reserved.

Modifying an Existing Printer Type to Use Pasta


If your printer is already assigned to a printer type that contains styles and drivers that you want to maintain, you can add Pasta to the existing printer type.

1-13

Copyright 2003, Oracle. All rights reserved.

Adding a New Printer Type to Use Pasta


If your printer is already assigned to a printer type that contains styles and drivers that you want to maintain, you can add Pasta to the existing printer type.

1-14

Copyright 2003, Oracle. All rights reserved.

Generating Other Formats using the Preprocessing Option


Use the preprocessing option to generate output files using formats other than those that Pasta natively supports..

1-15

Copyright 2003, Oracle. All rights reserved.

PrintForms
PrintForms allows you to create your own background template for a report and use it at the time of printing either as a background image or as a standard form.

1-16

Copyright 2003, Oracle. All rights reserved.

Using PrintForms
There are two phases to using PrintForms: Create the PrintForm Deploy the Print form to Oracle Applications

1-17

Copyright 2003, Oracle. All rights reserved.

Other Customization Materials for Oracle Applications Printing


Printer Manual

Installing Oracle Applications

Oracle Applications System Administrators Guide

1-18

Copyright 2003, Oracle. All rights reserved.

Customizing Printer Components

Print style

Printer driver

SRW driver

1-19

Copyright 2003, Oracle. All rights reserved.

Customizing Print Styles

Rows (height) Columns (width)

1-20

Copyright 2003, Oracle. All rights reserved.

Customizing Printer Drivers

Printer driver

1-21

Copyright 2003, Oracle. All rights reserved.

Invoking a Printer Driver

Print command and arguments

Operating system

Concurrent manager

Arguments

Custom program*

Print subroutine* Command Arguments *Name specified on Printer Driver window


1-22 Copyright 2003, Oracle. All rights reserved.

Operating system

Passing Print Arguments


Destination of target printer

Number of copies to print

Name of file to print

Header page title

1-23

Copyright 2003, Oracle. All rights reserved.

Using the Program Driver Method

Concurrent manager

Arguments

Custom program*

*Name specified on Printer Driver window

1-24

Copyright 2003, Oracle. All rights reserved.

Initiating Printing from a System Shell Script


Use the command method or the printer driver method. Place the script in the appropriate directory.

System Shell Script

1-25

Copyright 2003, Oracle. All rights reserved.

Printing from Standard Input Directly to the Printer


Invoke the printer driver by using the command method. Select the Standard Input check box.

Command Method

1-26

Copyright 2003, Oracle. All rights reserved.

Driver Method Parameters for Spooling

Check box cleared Concurrent manager

Check box selected Print program

Temporary File

Temporary File

1-27

Copyright 2003, Oracle. All rights reserved.

Initialization and Reset Field Contents


Specified in the Printer Drivers window Control print orientation, character set, and line density Nonprintable characters can be specified in octal

1-28

Copyright 2003, Oracle. All rights reserved.

Creating a Custom SQL*ReportWriter Driver


1. Copy an existing .prt file and save. 2. Modify the new file with new control information. 3. Place the new file in $FND_TOP/$APPLREP. 4. Assign the new driver to a print style or printer driver.

1-29

Copyright 2003, Oracle. All rights reserved.

Sample SRW Driver File


srw driver-A.prt printerdec LN03 A4 Landscape height width 62 132

between pages control(L) return linefeed control(J) esc[1m esc[0m esc[4m esc[0m

codebold on codebold off codeunderline on codeunderline off

1-30

Copyright 2003, Oracle. All rights reserved.

Order of Reading Printer Settings


Concurrent programs definition Report set definition Printer user profile option value User submits report to run

1-31

Copyright 2003, Oracle. All rights reserved.

Testing Your Customization

Run report

New printer driver

Check output

1-32

Copyright 2003, Oracle. All rights reserved.

Summary
You should now be able to do the following: Register new printers Define new printer types Create a custom print style Create a custom printer driver Assign a print style and printer driver to a printer type Create a custom SRW driver for formatting text and page breaks

1-33

Copyright 2003, Oracle. All rights reserved.

You might also like