COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: RubenvdLinden on 05 Jun 2009 10:25:11 AM

Title: Render objects in Layout Component Reference based on ReportOutput()
Post by: RubenvdLinden on 05 Jun 2009 10:25:11 AM
Hi,

I have a template with a report header which is a Layout Component Reference. The report header contains a company logo which seems to cause problems when the report output is set to Excel (if a user clicks the logo, e.g. to remove it, Excel freezes).
I opened the report with the layout component and created a render variable for the company logo:
ReportOutput() = 'PDF' or ReportOutput() = 'HTML'

After saving the report all the reports that use the template started to produce Application Error messages, so I quickly removed the render variable again.

Is there another way to accomplish the same result (no logo in Excel)?
Title: Re: Render objects in Layout Component Reference based on ReportOutput()
Post by: Gopinath on 09 Jun 2009 03:51:27 AM
If possible have 2 pages, one with logo and one without logo. Render the pages accordingly.
Title: Re: Render objects in Layout Component Reference based on ReportOutput()
Post by: PlayCognos on 22 Jun 2009 11:56:22 AM
After creating the render variable in the Template, make sure you add the same variable name in each report. Otherwise, the component (report header) looks for that information in the report and not in the template. When it does not find it, it throws an error.

PC