RE: 4gl text reports

"Christopher, Pete" <[email protected]>
Newsgroups gmane.comp.lang.4gl.fourjs.user
Message-ID <[email protected]>
We also had an issue that was code related where if you issue the
statement "skip 2 lines" and that fell at the bottom of the page, it
would end up "creeping" the headers as you went (would skip one line on
the current page, do the page break, skip another line, then print the
header).

If you replaced
	"skip 2 lines"
With
	"print"
	"print"

You got the same effect but you didn't have the header creep that you
had with the skip command.

This issue was back in BDL 3.x so I'm not sure that it applies to your
situation, is valid in Genero, or even is remotely your issue.

HTH,

--Peter

-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Joel Schumacher
Sent: Tuesday, June 21, 2005 4:45 PM
To: [email protected]
Subject: Re: [fourjs-users] 4gl text reports

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
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.