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

HTML window.print() button only prints active page

Started by jriley, 22 Mar 2016 04:15:44 PM

Previous topic - Next topic

jriley

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

jriley

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.