COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: jriley on 22 Mar 2016 04:15:44 PM

Title: HTML window.print() button only prints active page
Post by: jriley on 22 Mar 2016 04:15:44 PM
We have hidden the default menu from end users as they do not generally require that additional functionality.  We have added an html button for printing, but have discovered that only the active page is being printed. 

<button type="button"onClick="window.print();return false;">Print Report</button>

In a multi-page report, users would have to go to each individual page and print it which is less than optimal. 

Has anyone run into this situation or have any suggestions for resolution?

Thanks in advance.
Joe
Title: Re: HTML window.print() button only prints active page
Post by: jriley on 23 Mar 2016 08:06:49 AM
I found a fix for this problem within Cognos Report Studio.  Went to outermost list object and then to Properties.  Under Data, set Rows Per Page to 50,000.  Which is way more than we would expect.  Saved change, ran report and multiple pages printed out as expected on screen.  See screenshot. 

I was thinking we'd have to do some HTML code to set the print area, but this did the trick for us.  Thanks.