COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: itgowrishankar on 16 Aug 2013 09:29:43 AM

Title: How can we hide toolbar and header from 'Run Report - PDF' format in Cognos 10.1
Post by: itgowrishankar on 16 Aug 2013 09:29:43 AM
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..?

Title: Re: How can we hide toolbar and header from 'Run Report - PDF' format in Cognos 10.1
Post by: CognosPaul on 18 Aug 2013 02:17:59 AM
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).
Title: Re: How can we hide toolbar and header from 'Run Report - PDF' format in Cognos 10.1
Post by: tjohnson3050 on 18 Aug 2013 11:03:00 AM
The toolbar can also be hidden by using capability security settings on the Cognos Viewer capability.
Title: Re: How can we hide toolbar and header from 'Run Report - PDF' format in Cognos 10.1
Post by: Grim on 19 Aug 2013 07:18:52 AM
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
Title: Re: How can we hide toolbar and header from 'Run Report - PDF' format in Cognos 10.1
Post by: tjohnson3050 on 20 Aug 2013 10:20:03 PM
Thanks Grim! (applause)

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