COGNOiSe.com - The IBM Cognos Community

IBM Cognos Analytics Platform => Cognos Analytics => Reporting => Topic started by: Spyhop on 17 Mar 2020 05:11:12 PM

Title: Disable ability to run report as PDF.
Post by: Spyhop on 17 Mar 2020 05:11:12 PM
I have a report that looks terrible in PDF, I would like to be able to prevent a user from being able to "Run as" PDF.

I tried to create a render variable, based on ReportOutput() function, to hide the prompts, and the 'Finish' button on the prompt page and display a message that PDF is not available when the user selects "Run as PDF". No luck.

I tried to display the value returned from ReportOutput() in a layout calculation but no matter what format I ran the report in it always displayed 'XHTMLFRGMT'

Thanks
Title: Re: Disable ability to run report as PDF.
Post by: Spyhop on 18 Mar 2020 10:01:55 AM
I have learned that the ReportOutput() function value selected by the user is not available on the prompt page, once the report is run I see the correct value being returned from the function.
Title: Re: Disable ability to run report as PDF.
Post by: dougp on 18 Mar 2020 10:26:21 AM
What version of Cognos Analytics?  I remember having this problem and worked with IBM Support.  I think the problem was fixed.

I saw the problem in 11.0.7.  I'm now using 11.0.13 FP1.  (I don't remember if it works now or if it is fixed in a fix pack after FP1.)