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

Re: [sqr-users] W2 print ignoring top margin



We figured it out --   I'm including the code in case anyone else has a 
similar issue.

we needed to add at the beginning of our report.

 encode '<27>&l3A<27>&l112F<27>&l-3E' into $perforation_skip
! <27>&l3A   A = PAPER SIZE; 3 = legal 
! <27>&l112F F = TEXT LENGTH; 112 = number of lines from top margin   
! <27>&l-3E  E = TOP MARGIN     -3 = number of lines (negative was used 
since a zero did not cause
!                                                     the first line to 
print high enough on the form) 
  print $perforation_skip () code


Amy M. Harvel
City Of Phoenix Information Technology Department
Programmer III
602-261-8974




Amy Harvel/ITD/PHX@PHXENT
Sent by: sqr-users-admin@sqrug.org
12/18/2003 09:56 AM
Please respond to sqr-users

 
        To:     sqr-users@sqrug.org
        cc: 
        Subject:        [sqr-users] W2 print ignoring top margin


Our W2 print is ignoring the top margin command.  Here is our page 
layout information.  Now -- we ignore the PeopleSoft delivered print 
commands because in 8 years, they have never worked for us.  The 
problem is on all HP printers and the print layout code is below.  No 
matter what is put in the top margin it is ignored. 

 Declare-Layout COP_W2_layout
  Orientation=Portrait
  paper-size=(8.5, 14)
  Top-Margin = .0001
  Left-Margin= .2
  max-columns=139
  max-lines= 125
  line-height= 9
  char-width=7.2
  FORMFEED=YES
 End-Declare

 Declare-Printer COP_W2_layout
  for-reports=(COP_W2_layout)

#ifdef UNIX
   type = POSTSCRIPT
#else
   type = HPLASERJET
   Symbol-Set=0U     ! ASCII symbol set
  Pitch=10 
#endif
  Font=3
  Point-Size=12
 End-Declare

 Declare-Report COP_W2_layout
  Layout=COP_W2_layout
#ifdef UNIX
  Printer-Type=POSTSCRIPT
#else
  Printer-Type=HPLASERJET
#endif
 End-Declare
----
A sample of the output of the print commands on the .lis file is below

E&l0O&k12.0000H&l6C(0U(s0P(s10H(s12V(s3T
&a2L&l0E&a90v144HE(0N&l8D&l0E&l3A&l112F&l0L
&a90v144H
&a90v216H 
&a1620v216H 

Does anyone have any ideas?


Amy M. Harvel

_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users


_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users