Hi,
I have been trying to hide toolbar and header for 'Run Report - PDF' format output of report(using Cognos 10.1.1). I am able to do so for 'Run Report - HTML' format using JavaScript, but failed in hiding for PDF output.
Is there any way to hide toolbar, when report run with PDF format..?
Do you want to hide the toolbar for specific reports or for all reports?
The JavaScript solution won't work as the JavaScript sits inside the report, and won't ever work in PDF. So getting the desired results will depend on the need.
You can, for instance, set up a dedicated URL that hides the toolbar and header:
http://SERVER/ibmcognos/cgi-bin/cognosisapi.dll?b_action=cognosViewer&ui.action=view&ui.object=defaultOutput(reportPath)&ui.format=PDF&cv.toolbar=false&cv.header=false
You can set up a link in Cognos Connection to use that link, simply move or hide the report so users don't click on that.
If you need this for all reports, you can modify the css to hide the elements (I'd do this on a skin assigned to the users so the report developers still have full functionality).
The toolbar can also be hidden by using capability security settings on the Cognos Viewer capability.
Add or Hide User Interface Elements Based on Groups and Roles
http://pic.dhe.ibm.com/infocenter/cbi/v10r1m0/index.jsp?topic=%2Fcom.ibm.swg.im.cognos.ug_cra.10.1.0.doc%2Fug_cra_id36310CustomizetheUserInterfaceBasedonGroupandR.html
Elements you can hide
http://pic.dhe.ibm.com/infocenter/cbi/v10r1m0/index.jsp?topic=%2Fcom.ibm.swg.im.cognos.ug_cra.10.1.0.doc%2Fug_cra_id53939ElementsYouCanHide.html
How to show the Toolbar in Cognos Viewer on Portal Page.
http://www-01.ibm.com/support/docview.wss?uid=swg21425789
Thanks Grim! (applause)
I am starting to understand how you got the title "Honorary Master of IBM Links" ;)