|
Simple calculation, until someone changes the overflow line or the page length or the lines per inch or want to change to landscape mode or ... You get the idea. Bill Brosch Swift Technologies e-mail: bbrosch@swiftorder.com web site: http://www.swiftorder.com phone: 1-847-289-8339 fax: 1-847-289-8939 -----Original Message----- From: oludare@ix.netcom.com [mailto:oludare@ix.netcom.com] Sent: Tuesday, September 05, 2000 10: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 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.