Re: 4gl text reports

Joel Schumacher <[email protected]>
Newsgroups gmane.comp.lang.4gl.fourjs.user
Message-ID <[email protected]>
I'll admit I haven't written a single report with 4Js, but the common
denominator we found with most printers was they could generally handle
60 lines per page and used ASCII(12) (form-feed) to advance to the top
of a new page.

In normal 4GL, 4GL didn't think of pages.  If you said your page length
was 66, it didn't generate a form-feed character.  It would hope that
when you printed line 67, the printer was on a new page.  Margins, they
were handled by 4GL.  If you said 3 lines, 4GL would skip 3 lines at the
bottom to space it out to 66 lines.

We would define our page length as 59.  In our page trailer, we would
print an ASCII(12).  Which told 4GL to print a form-feed followed by a
carriage return.

On the printer, be it dot-matrix or laserjet, it printed 59 lines, then
did the form-feed to the top of a new page.  4GL then did the carriage
return because it didn't know it just advanced to a new page.  So, the
second page after this carriage return had 59 lines left (thus our page
length 59).

The side-effect is that the first page starts at the top and each
following page is one line down because of the extra carriage return
after the form-feed character.

I don't know about drivers and such because we had these things on Unix
and it was just a unix printer to us.


June NEBAB ([email protected]) wrote :
> MessageWe are having pagination issues with all of our 4GL reports.  The
> reports are all in text format.  The global output format of all our report
> is:
> 
> top margin 2
> bottom margin 2
> page length 66
> left margin 0
> 
> The headings on our reports drops down a few lines after every page.   I use
> the CUPS recommended printer driver "postscript" for our HP Laserjet
> printers.  I tried setting different lpi's (6, 7, 8 etc) but it didn't work.
> The margins are currently set at (cpi) top 54 bott 57 left 24 right 24.   We
> were previously on SCO and we used the HP PCL5 "model script" it came with
> (/usr/spool/lp/model/HPLaserJet).
> 
> Info:
> cups-1.1.17-13.3.27
> cups-libs-1.1.17-13.3.27
> 
> Has anyone had this problem?  Any suggestions is appreciated.

-- 
______________________________________________________________________
Joel Schumacher                    JCPenney Co. - UNIX Network Systems
[email protected]              6501 Legacy Drive   M/S 6108
(972) 431-4044                     Plano, TX  75024

The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material.  If the reader of this message is not the intended recipient,
you are hereby notified that your access is unauthorized, and any review,
dissemination, distribution or copying of this message including any
attachments is strictly prohibited.   If you are not the intended
recipient, please contact the sender and delete the material from any
computer.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.