COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: sg24 on 03 Mar 2011 07:52:12 AM

Title: Print - urgent
Post by: sg24 on 03 Mar 2011 07:52:12 AM
Hi Folks !

can anybody give me the javasript for printing the report in HTML or PDF format?

Since the user wants the print button on the report page, i need to put a print button and enable for printing purpose.

Javascript Gurus , kindly help.

Thanks a lot!

Sg.
Title: Re: Print - urgent
Post by: melee on 03 Mar 2011 10:10:20 AM
window.print() :)
Title: Re: Print - urgent
Post by: AussiePete2011 on 03 Mar 2011 05:41:34 PM
Hi there

Have a look at the following page http://www.ibm.com/developerworks/data/library/cognos/reporting/scripting_techniques/page516.html?ca=drs-

You need to add a html item on your report then add a syntax like
<input type="BUTTON" class="clsPromptButton" onClick="SplitText()" value=" Finish ">

Or have a look at the Cognos Developer forum
http://www.ibm.com/developerworks/forums/thread.jspa?messageID=14494142

Or
http://presentations.keysoft.co.in/streamingfile.aspx?id=206

Or
https://www-304.ibm.com/support/docview.wss?uid=swg21335464

There are a few examples out there.
Hope this Helps
Cheers
Peter B