Re: SQL*ReportWriter v1.1 printdef problems

From: Ms. D.H. Harvey <qq45_at_liverpool.ac.uk>
Date: 22 May 2003 15:34:34 GMT
Message-ID: <baiqma$4qk$1_at_news.liv.ac.uk>


,Dom <form999v_at_hotmail.com> wrote:
: Thanks very much for your reply (and apologies for my limited
: Unix/ReportWriter knowledge) and I'm sure this is a stupid question
: but how do I add it?!? I assumed the command in my original post would
: have done it (printdef lab_xerox xerox default) but I got the error
: 'Printer not in printdef database'. I've included the contents of our
: printdef.dat file in case it sheds any light on the problem - the
: wierd thing is that other printers print with the same parameters sent
: to ReportWriter.

: Cheers

: Dom

: #
: # DEC -- DEC printers in portrait mode
: #
: DC|DEC|DEC printers:\
: :ff=^L:cr=^M:nl=^J:is=^L:so=\E[1m:se=\E[0m:li#66:co#80:\
: :ap:us=\E[4m:ue=\E[0m:
: #
: # DECWIDE -- DEC printers in portrait mode with compressed characters
: #
: DW|DECWIDE|DEC printers:\
: :ff=^L:cr=^M:nl=^J:is=^L\E[4w:so=\E[1m:se=\E[0m:li#66:co#132:\
: :ap:us=\E[4m:ue=\E[0m:
: #
: # DECLAND -- DEC printers in landscape mode (/FORM=LAND)
: #
: DL|DECLAND|DEC printers:\
: :ff=^L:cr=^M:nl=^J:so=\E[1m:se=\E[0m:li#66:co#132:\
: :ap:us=\E[4m:ue=\E[0m:\
: :is=\E[!p\E[?21 J\E[15m:\
: :fs=\E[!p:
: #
: # DEC180 -- DEC printers, landscape wide mode (/FORM=LANDWIDE)
: #
: D1|DEC180|DEC printers:\
: :ff=^L:cr=^M:nl=^J:so=\E[1m:se=\E[0m:li#66:co#180:\
: :ap:us=\E[4m:ue=\E[0m:
: :is=\E[!p\E[?21 J\E[15m:\
: :fs=\E[!p:
: #
: # DFLT -- Printer with no special codes -- also used for files
: #
: DF|DFLT|default logical printer:\
: :ap:li#66:co#80:
: #
: # WIDE -- Wide printer with no special codes
: #
: WI|WIDE|default wide logical printer:\
: :ap:li#66:co#132:
: #
: # WIDE180 -- 180 wide printer with no special codes
: #
: W1|WIDE180|default 180 wide logical printer:\
: :ap:li#66:co#180:
: #
: # HPL -- HP LaserJet in portrait mode
: #
: HP|HPL|HP LaserJet:\
: :ff=^L:cr=^M:nl=^J:is=\E(s0P\E&k0S\E&l7.27c66F:so=\E(s7B:se=\E(s0B:\
: :li#66:co#80:ap:us=\E&dD:ue=\E&d_at_:
: #
: # HPLWIDE -- HP LaserJet in portrait mode with compressed characters
: #
: HW|HPLWIDE|HP LaserJet:\
: :ff=^L:cr=^M:nl=^J:is=\E(s0P\E&k2S\E&l7.27c66F:so=\E(s7B:se=\E(s0B:\
: :li#66:co#132:ap:us=\E&dD:ue=\E&d_at_:

Dom

You use the printdef command to create customised binary printer definition files.

The printdef command:

$ printdef

SQL*ReportWriter: Release 1.1.14.15.1 - Production on Thu May 22 14:32:16 2003

Copyright (c) Oracle Corporation 1979, 1994. All rights reserved.

 Usage: printdef [printer=]printer [outfile=]outfile [pdfile=]pdfile

   printer    - Name of printer
   outfile    - Location and name of file to place printer definition
   pdfile     - Location and name of printer def file (Default: printdef.dat)

A printdef.dat file:

#
# WIDE -- Wide printer with no special codes
#
MYT|MYTEST|test printer:\
        :ap:li#66:co#132:

printdef to generate:

$ printdef mytest xerox

SQL*ReportWriter: Release 1.1.14.15.1 - Production on Thu May 22 14:38:12 2003

Copyright (c) Oracle Corporation 1979, 1994. All rights reserved.

Generating printer file for mytest...
$ ls -l xerox
-rw-r--r-- 1 dbowner dba 512 May 22 16:15 xerox $

HTH Helen

: "Ms. D.H. Harvey" <qq45_at_liverpool.ac.uk> wrote in message news:<bafmlj$4nu$1_at_news.liv.ac.uk>...

:> ,Dom <form999v_at_hotmail.com> wrote:
:> : We are running SQL*ReportWriter on a Unix platform (DG-UX) and are
:> : running into problems adding a new printer. The printer works as a
:> : normal UNIX printer but when it comes to using it with
:> : SQL*ReportWriter we get the following error
:>  
:> :    The printer file specified was not a valid printer description
:> : (printdef) file.
:>  
:> : We then try add the printer definition file using printdef but then
:> : get the following error:
:>  
:> : root> printdef lab_xerox xerox default
:> : SQL*ReportWriter: Version 1.1.14.16.1 - Production on Tue May 20
:> : 17:57:25 2003
:> : Copyright (c) Oracle Corporation 1979, 1993.  All rights reserved.
:> : Generating printer file for lab_xerox...
:> : Printer not in printdef database.
:>  
:> : Apologies if this is a trivial question, but we're stuck! 
:> : Any help would be much appreciated, thanks in advance
:>  
:> : Dom
:> 
:> Hi Dom
:> 
:> The definition for printer lab_xerox is not in your printdef file ie the
:> one named default ...
:> 
:> HTH Helen
Received on Thu May 22 2003 - 17:34:34 CEST

Original text of this message