PDA

View Full Version : How to make Page Check work.



Tod Brannen
27-Jan-2006, 12:56 PM
Greetings,
I tried "output Page_Check 6" but it printed past the end of the page
anyway and I had every other page with two lines at the top. I want it to
do a new page if I only have 5 or less lines left on the page. I am using df
2.3b basic report. The help does not have an example of use.

Thanks,

Tod Brannen

Michael Fenton
27-Jan-2006, 12:58 PM
It wont !
Pagecheck (number of lines remaining) just bangs out a new page and sets
indicator pagebreak true for you to do, or the report to do a header thing.

Use
if linecount gt (PAGENAME.LINES - 5 or whatever) - case sensitive !
do my end of pagethings

Michael Fenton
27-Jan-2006, 12:59 PM
oops
Should be
if linecount gt (pageend - lines needed)

SAT
Michael Fenton

Free Agent
27-Jan-2006, 10:31 PM
Michael,
That did not work. Or should I say, not for me. I could easily have
wrong syntax. I ended up changing the PageEnd to 55 from 62 and it seems to
catch it now.

Thanks,

Tod Brannen

"Michael Fenton" <mrmjf@tiscali.co.uk> wrote in message
news:TwHOL02IGHA.728@dacmail.dataaccess.com...
> oops
> Should be
> if linecount gt (pageend - lines needed)
>
> SAT
> Michael Fenton

Joerg Thuemmler
30-Jan-2006, 02:04 AM
Tod,

correct syntax is afaik

pagecheck 5
or pagecheck <formname>

if there aren't 5 (formnames length) free lines until pageend, it
gives a formfeed (depending on your pagefeed setting this meens
sending a "0c" Hex char (pagefeed=0, standard), linefeeds until
pagefeed is reached (pagefeed >0) or wait for key input
(pagefeed<0), the last is of course mostly used for outputting to
"con:").
After sending the formfeed command the indicator "pagebreak" is
true, which you can use for outputting page headers:

pagecheck 6
[pagebreak] begin
indicate pagecheck false // only needed if there may be a problem
// with a true pagecheck
output pageheader
move pageheader.lines to linecount // only needed, if linecount
// is not set by pagecheck
// test yourself!
end

I don't know exactliy, wheater the system integer "linecount" is
properly set if you use this outside of report macros, so you can
include the setting if needed

joerg


Tod Brannen wrote:
> Greetings,
> I tried "output Page_Check 6" but it printed past the end of the page
> anyway and I had every other page with two lines at the top. I want it to
> do a new page if I only have 5 or less lines left on the page. I am using df
> 2.3b basic report. The help does not have an example of use.
>
> Thanks,
>
> Tod Brannen
>
>

Free Agent
30-Jan-2006, 07:49 PM
Joerg,
Thanks for the explanation. I have used that technique before, but this
time it did not seem to work.

Tod Brannen

"Joerg Thuemmler" <listen@vordruckleitverlag.de> wrote in message
news:FazoctWJGHA.5164@dacmail.dataaccess.com...
> Tod,
>
> correct syntax is afaik
>
> pagecheck 5
> or pagecheck <formname>
>
> if there aren't 5 (formnames length) free lines until pageend, it
> gives a formfeed (depending on your pagefeed setting this meens
> sending a "0c" Hex char (pagefeed=0, standard), linefeeds until
> pagefeed is reached (pagefeed >0) or wait for key input
> (pagefeed<0), the last is of course mostly used for outputting to
> "con:").
> After sending the formfeed command the indicator "pagebreak" is
> true, which you can use for outputting page headers:
>
> pagecheck 6
> [pagebreak] begin
> indicate pagecheck false // only needed if there may be a problem
> // with a true pagecheck
> output pageheader
> move pageheader.lines to linecount // only needed, if linecount
> // is not set by pagecheck
> // test yourself!
> end
>
> I don't know exactliy, wheater the system integer "linecount" is
> properly set if you use this outside of report macros, so you can
> include the setting if needed
>
> joerg
>
>
> Tod Brannen wrote:
> > Greetings,
> > I tried "output Page_Check 6" but it printed past the end of the
page
> > anyway and I had every other page with two lines at the top. I want it
to
> > do a new page if I only have 5 or less lines left on the page. I am
using df
> > 2.3b basic report. The help does not have an example of use.
> >
> > Thanks,
> >
> > Tod Brannen
> >
> >