COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: Gyana.Sahoo on 09 Dec 2011 01:58:23 AM

Title: How to Remove ? page number from HTML Page
Post by: Gyana.Sahoo on 09 Dec 2011 01:58:23 AM
Hi,
  While I ran a report in HTML, If i click on Page down  the page number is showing correctly but while i click on Bottom the Page number Shows '?' mark.

But in PDF and EXCEL i am getting the correct page number.

It is a HTML issue or is ther any way to over come this .

Please guide me.

Thanks
Title: Re: How to Remove ? page number from HTML Page
Post by: blom0344 on 09 Dec 2011 02:41:08 AM
HTML is generated page for page, which means Cognos will not know in advance how many pages will follow, hence the ?  Unfortunately the average user has no clue and our customers keep wondering why the ? is displayed
You can alway modify the report expression to avoid displaying the total number of pages..
Title: Re: How to Remove ? page number from HTML Page
Post by: shricognos on 09 Dec 2011 02:51:23 AM
It is Cognos drawback. No one Overcome this.
But, if u save and schedule the report, then u can see all page numbers(even u directly click on "BUTTOM" ) through cognos connection.
Title: Re: How to Remove ? page number from HTML Page
Post by: blom0344 on 09 Dec 2011 03:35:25 AM
Not a Cognos issue, but the way HTML pages work. If you want to make the most of it (including great formatting) use PDf 
Title: Re: How to Remove ? page number from HTML Page
Post by: MFGF on 09 Dec 2011 04:02:14 AM
Quote from: shrikanth on 09 Dec 2011 02:51:23 AM
It is Cognos drawback. No one Overcome this.
But, if u save and schedule the report, then u can see all page numbers(even u directly click on "BUTTOM" ) through cognos connection.

It is not a fault - it is entirely by design. As Blom says, when rendering a report interactively as HTML, each page is created and rendered individually, to give you the best possible performance. If you skip straight to the last page it will do exactly as you ask - and not render the other pages in between, therefore making a page count an unknown quantity. When reports are rendered as any other output, all the pages are rendered on one go, and you end up with one long output which you can scroll through, but of course you have to wait much longer for it to render all the pages and return them in one go.

An alternative is to run reports and save the output. Once this has been done, even as HTML you end up with every page rendered (along with page numbers). Your users can then simply view the saved output.

Regards,

MF.
Title: Re: How to Remove ? page number from HTML Page
Post by: dipu.francis on 24 Apr 2014 01:30:05 AM
You can easily fix this by using a conditional block and conditionally rendering by a block variable with a Boolean expression like this

ReportOutput ()='PDF'
OR
ReportOutput ()='spreadsheetML'
OR
ReportOutput ()='CSV'

for value YES(PDF or excel) put page Number Style 1 of 3
and for value NO(Html) put page Number Style 1
Title: Re: How to Remove ? page number from HTML Page
Post by: blom0344 on 24 Apr 2014 03:04:02 AM
That does not fix the Original issue as posted by the OP. And you do realize this thread is a bit stale?   ;D