If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

hOW TO GET TOTAL NUMBER OF PAGES IN REPORT HEADER(REPORT STUDIO)

Started by KANUL, 18 Nov 2008 10:43:20 PM

Previous topic - Next topic

KANUL

HI EVERY ONE .

I WANT TO DISPLAY TOTAL NUMBER OF PAGES PRESENT IN MY REPORT ON THE FIRST PAGE OF MY REPORT .
IF THE REPORT CONTAINS 20 PAGES , WHEN I RUN THE REPORT I SHOULD GET 20  ON TOP OF THE REPORT.

sivabisani

Hi,

As per my understanding we can take the layout calculation
in that we put the report function in first layout calc pagenumber() and text item as -of-  and second layout calculation we can put the report function as it is PageCount().
By producing this function we can achieve this.

Thanks,
siva

Suraj

Yes, but it only works when the report is rendered in PDF or saved in html/pdf.
When you just run the report as html, it'll not count all the pages.

DanSev

the report function only works if the whole report rendered. If you know how many rows are being displayed per page, then you can count the number of rows returned by the report and divide that number by the amount of rows per page to get a page total amount. It is a work around, but it'll do the job.