If you are unable to create a new account, please email support@bspsoftware.com

 

How can we hide toolbar and header from 'Run Report - PDF' format in Cognos 10.1

Started by itgowrishankar, 16 Aug 2013 09:29:43 AM

Previous topic - Next topic

itgowrishankar

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..?


CognosPaul

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).

tjohnson3050

The toolbar can also be hidden by using capability security settings on the Cognos Viewer capability.

Grim

"Honorary Master of IBM Links"- MFGF
Certified IBM C8 & C10 Admin, Gamer, Geek and all around nice guy.
<-Applaud if my rant helped! 8)

tjohnson3050

Thanks Grim! (applause)

I am starting to understand how you got the title "Honorary Master of IBM Links" ;)