Total number of pages in report builder

storzi

Member
Hi,

is there a way to print the total number of pages on every site in a report?
With PAGE-NUMBER() I can print the current page number.
But I miss a function to print the total number of pages on every page.

Thanks a lot for every answer.

Greets
Storzi
 
well, its unknown until the report finishes.

maybe put in a place holder, after the report finishes take the last page number and replace it with the place holder.

i'm really not sure but from what i remember in mfgpro.

in the printer definition you could also set procedures to run when output is opened and closed and find a way to combine that feature.

but i'm really not sure if its a good idea or a practical one.


another thing you could do is create document types that have those features and much more instead of plain text.

you can create office docs with com-handles or office xml schemas (that can also be used with openoffice).

theres pdf using pdfinclude and others, ofcourse html/css, svg/vml etc.

if you're working on unix you could use smtpmail to pass the files over to the users workstation. hth
 
Thanks for your reply.
I think I will try to run the report in background (or hidden) and anyhow get the total number of pages back to give it to a second report-call.

I can`t use another document type because we have a lot of reports allready exisiting.
My chief won`t feel happy about, if I tell him the reports have to re-develop.
:o
 
My chief won`t feel happy about, if I tell him the reports have to re-develop.
:o

yeah, i know how that is :) but he may like how they look ;)

though you wouldn't have to rewrite the report just display part.


when i write 4gl reports i separate the query and display.

by using a query procedure that fills a temp-table that holds all the data to be displayed. additionally because its a temp-table you can cook, sort of speak, the data more then a plain query.

and another or more then one procedures for display. i use templates for different types of reports and document types.


i've used office pivot tables quite alot to let people play and analyze the data themselves. hey, it beats writing half a dozen variations of the same report.
 
Back
Top