Creating Printed Forms using Printer Commands

Document Sample
Creating Printed Forms using Printer Commands Powered By Docstoc
					Creating Printed Forms
         using
  Printer Commands
  NCOAUG Training Day
    August 15, 2003




   www.ssiworldwide.com
                    Objectives

 To demonstrate how to use standard PCL commands to
  create boxes and lines for printed forms
 To identify the components of the solution
 To identify the required setup steps in Oracle
  Applications
 To provide a sample solution that you can use
                      Agenda

 Overview of the requirements
 Overview of the solution
 Conclusion
          Overview of the requirements

 Printed Form requires lines and boxes to provide a
  more professional look to the standard Oracle report
 Must be implemented using standard Oracle
  functionality
 Output must print on laser printers that are PCL5
  compatible
 No special “forms” handling is needed to print reports
              Overview of the solution

 Create the PCL5 commands to draw the form
    Type directly into a text file
    Use a freeware product to create the text file
 Create a Printer Driver and Form Driver command file
    Passes name of PCL file that contains the form
 Create a Printer Driver
    Use a compatible SRW driver file
    Use the Printer Driver command file
 Create a Printer Style and SRW File
    Use the new SRW driver
    Set columns and rows to match the form
 Add Style and Driver to the desired printer
 Add Style to the desired report
Overview of the Solution
       Sample
           Create the PCL5 commands

 Raster Graphic functions available in PCL5
    Must be very experienced using PCL commands
    Must be able to print to a PCL compatible printer to test
     the look of the form
    Use third-party freeware product, e.g. ECPAGE


 Example: Create a pack list format called
  GUAC_PACK_LIST
Create the PCL5 commands
Create the PCL5 commands
Save in a file called GUAC_PACK_LIST.txt
   Create a Printer Driver and Form Driver
                command file

 NT Batch file or Unix shell script
 Printer Driver Command File:
    Must pass the Printer, Filename and Form Driver
 Form Driver Command File:
    Concatenates the PCL text file to the beginning of the file
    Replaces the Form Feed with Form Feed plus the PCL
     commands to draw the form
    Name it the same as the form, e.g. GUAC_PACK_LIST
Create a Printer Driver and Form Driver
             command file
           Printer Driver Command File



  $3 $3 $2
  lp –c –d$1 –nobanner $2TMP2
  rm $2TMP1 $2TMP2
Create a Printer Driver and Form Driver
             command file
           Form Driver Command File
Create a Printer Driver
Create a Printer Style and SRW File
              Printer Style
Create a Printer Style and SRW File
              SRW File
Add Style and Driver to the desired printer
Add Style and Driver to the desired printer
Add Style to the desired report
                      Conclusion

 Process Example:
    Submit Report GOBO Packing Slip Report
    Printer Style US Packing Slip Portrait links to Printer
     Driver GOBRDPAK_PACKING SLIP
    Printer Driver invokes Printer Driver command file (glp)
    Glp invokes GUAC_PACK_SLIP driver file
    Driver file concatenate GUAC_PACK_SLIP.txt to beginning
     of report
    Driver file replaces Form Feed with the form layout
    Driver file issues the OS print command (e.g. lp)
  Creating Printed Forms
           using
    Printer Commands
     Questions and Answers

robert.rentz@us.ssiworldwide.com




      www.ssiworldwide.com