[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: PS direct printing creates garbage.



As an aside, I can't remember where I heard about this (it might even have been here but I had a quick look through the archives and couldn't find a mention of it) but HP have a web page that gives you the escape sequences you need for printing based on criteria you select.

There is one for PJL:  http://www.hp.com/cpso-support/generic/pcl/pjlwiz.html#resultwin
and one for PCL:  http://www.hp.com/cpso-support/generic/pcl/pclwiz.html

Regards

Wayne Ivory
Information Services
Westralian Sands Limited


>>> JOSEPH C SHORT <JCSHORT@ICRR.COM> 21/10/98 5:45:00 am >>>
SQRW/3.0.13.3/PC/Windows-NT 3.51/Informix 6 & 7.1/Jun 27 1996
PeopleTools v.7.02
I have developed an SQR which generates two output files.  When the output is
directed to a file(s) there is no problem.
The files can be copied to a printer and the output is correct.  However, when
the output is directed directly to a printer
the output is filled with my output in addition to garbage.  The following are
some excerpts from my program:

begin-setup
#include 'setupdb.sqc'   !Set environment
  declare-printer HP1
    for-reports=(Summary,Detail)
    type=HP
    point-size=8
    font-type=fixed
    symbol-set=0U                          ! ASCII symbol set
    pitch=17                               ! Characters per inch
    font=3                                 ! Courier font
  end-declare
  declare-layout default
    paper-size=(20,10)
    top-margin=0
    left-margin=0
  end-declare
  declare-report Summary
    printer-type=hplaserjet
    layout=RptLayout
  end-declare
  declare-report Detail
    printer-type=hplaserjet
    layout=RptLayout
  end-declare
end-setup
:
begin-heading 9 for-reports=(Summary)
  do Heading-For-All
  ... print  statements ...
end-heading
:
!begin-heading 8 for-reports=(Detail)
  do Heading-For-All
  ... print statements ...
end-heading
:
begin-procedure Report-Detail
  use-report Detail
begin-select
  select statement including printing to detail rpt
end-select
end-procedure
:
begin-procedure Report-Summary
  use-report Summary
begin-SELECT
  select statement including printing to summary rpt
end-select
: