Page Numbering

forum.reportbuilder (2000-2005) & forum.td.reportbuilder (2005-2010)
Chris Bunch

Page Numbering

Post by Chris Bunch » 25 Oct 2006, 12:05

 Posted by:  Chris Bunch 

Can someone confirm whether or not it is possible to display page numbers in
the format 'Page 1 of 3', 'Page 2 of 3', etc.
Obviously we can use PageNumber to return the first part of my requirement,
but I don't think we can calculate the total number of pages using RB?

Thanks,

Chris

Jeff Luther
Site Admin
Site Admin
United States of America
Posts: 2368
Joined: 04 Mar 2017, 18:34
Location: Palm Springs, California

Page Numbering

Post by Jeff Luther » 25 Oct 2006, 17:59

 Posted by:  Jeff Luther 

I have a code sample of this on my info. page link below. Take a look at it.

Best Regards,
Jeff Luther/PC Design
info: www.pulpcards.com/gupta/

czavala
Honduras
Posts: 195
Joined: 02 Oct 2018, 17:35
Location: San Pedro Sula, Honduras

Page Numbering

Post by czavala » 25 Oct 2006, 21:11

 Posted by:  Conrado Zavala 

Hello Chris,

In the Report Builder version that comes with GTD 3.1 you will find
TotalPages( ) function.

Conrado

Chris Bunch

Page Numbering

Post by Chris Bunch » 26 Oct 2006, 12:31

 Posted by:  Chris Bunch 


Fantastic. Thanks to both Jeff and Conrado - you have answered my question.

Cheers,

Chris

jota
Brazil
Posts: 2
Joined: 28 Sep 2018, 12:20
Location: São Paulo, Brasil

Re: Page Numbering

Post by jota » 06 May 2019, 17:08

Hello,

I need to solve the same question, but I am using CTD 2.1 where there is no TotalPages( ) function.

I try to make a pre-processed total in report, to sum a number "1" item with Page Break as the Restart Event... but it does not work...

Does anyone has another solution?

Jota
Last edited by jota on 07 May 2019, 14:38, edited 1 time in total.

EwaldP
Austria
Posts: 373
Joined: 07 Mar 2017, 08:00
Location: Austria

Re: Page Numbering

Post by EwaldP » 07 May 2019, 06:22

Hi Jota,

in 2.1 there is no API function to get the total pages. You will have to check them for yourself. In TD 1.5.1 we run the SAM_ReportFetchInit/SAM_ReportFetchNext twice. At the first run we count the page numbers
2019-05-07 08_17_32-edvhaus-dev04 - Remotedesktopverbindung.png
On the second run we sent the pagenumber to the report.
2019-05-07 08_19_26-edvhaus-dev04 - Remotedesktopverbindung.png
Hope, you get an idea how it could be work.

Regards
Ewald
You do not have the required permissions to view the files attached to this post.
Ewald P. Palmetshofer
EDV-Hausleitner GmbH
4020 Linz
www.edv-hausleitner.at

jota
Brazil
Posts: 2
Joined: 28 Sep 2018, 12:20
Location: São Paulo, Brasil

Re: Page Numbering

Post by jota » 07 May 2019, 14:49

Hello Ewald,

Thank you for answer.

I try to do like your suggestion, but there are a performance cost to run the report twice :(

I hope to find another solution.

Bests Regards

EwaldP
Austria
Posts: 373
Joined: 07 Mar 2017, 08:00
Location: Austria

Re: Page Numbering

Post by EwaldP » 08 May 2019, 05:53

Yes, if you have heary reports, this solution is time consuming.

If I remember right, it was possible to print reports in 1.5.1 with qrp files that are saved with ReportBuilder 6.1. Maybe you can try to implement the total pages function with a newer Report Builder version and save the qrp file. Please care the qrp is then für Report Builder 2.1 useless.

Ewald
Ewald P. Palmetshofer
EDV-Hausleitner GmbH
4020 Linz
www.edv-hausleitner.at

Return to “td.reportbuilder”

Who is online

Users browsing this forum: [Ccbot] and 0 guests