COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: morin on 23 Apr 2014 03:59:36 AM

Title: PDF and HTML differently
Post by: morin on 23 Apr 2014 03:59:36 AM
Hello,

I'd like to have the elements in my report arranged differently, depending on whether the report is run as PDF or HTML.

HTML (chart and crosstab should be horizontal):
(http://i.imgur.com/RxwjuSF.png)

PDF (chart and crosstab should be vertical):
(http://i.imgur.com/fAyLZFj.png)

I have two ideas but I don't know if they work and how to do it
A: Have two report pages and depending, which will be run depending whether the user selects PDF or HTML
B: Have two crosstab on the page but hide one depending whether the user selects PDF or HTML


Title: Re: PDF and HTML differently
Post by: Lynn on 23 Apr 2014 08:13:10 AM
Create a variable using the ReportOutput() function and use it as a render variable. You could use either option A or B. You might want to consider ensuring that other output formats, such as Excel, are addressed as well.
Title: Re: PDF and HTML differently
Post by: morin on 30 Apr 2014 02:07:36 AM
Thank you, this did work.