× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Why is it that when explaining how there are 50 lines per page and total
pages equals total records divided by lines per page, no one has taken
subtotals or level break behavior into account?  If you print subtotals,
they also take up space on the printed page.  The arithmetic to calculate
the number of pages including subtotals and unusual behavior at level breaks
such as skip to top of form makes this calculation rather challenging.  If
you run the report first just to get the total page count, the data could
change during the first run and the second run and make the total number of
pages captured from the first run wrong.  There are only two ways to do this

a. the post-processing technique someone described with the tildes ~~~~~
always gives the right answer.

b. you can compute a number in advance then print "page X of roughly Y
pages"

Richard Jackson
mailto:richardjackson@richardjackson.net
http://www.richardjacksonltd.com
Voice: 1 (303) 808-8058
Fax:   1 (303) 663-4325

-----Original Message-----
From: owner-rpg400-l@midrange.com [mailto:owner-rpg400-l@midrange.com]On
Behalf Of oludare@ix.netcom.com
Sent: Tuesday, September 05, 2000 9:08 PM
To: RPG400-L@midrange.com
Subject: Re: Re: page n of x


Create a field next to page number, create a work file similar to your
printer file. Keep a counter while creating workfile then write out to
printer file knowing already how many pages you have to  write.

Dare

RPG400-L@midrange.com wrote:
> AFAIK there is no keyword.

Easy enough though, you must know the total number of records to be printed
and just do the maths based on pre-determined lines per page.

Simple calc: 400 records to print divided by 50 lines per page gives you the
total number of pages.

Have a good one,

Norm

________________________________________________________
My web site is - http://www.iinet.net.au/~wmss - have a look around.


----- Original Message -----
From: "James David Rich"
To:
Sent: Wednesday, 6 September 2000 3:53
Subject: page n of x


> I need to put 'page n of x' on a printout.  I know I can easily use a dds
> keyword to get the current page.  Is there something that tells my program
> how many pages there are?  Maybe a dds keyword like PAGE?
>
>
> James Rich
> james@dansfoods.com
>
>

+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator:
david@midrange.com
+---

+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator:
david@midrange.com
+---

+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.