COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: a.info on 20 Nov 2012 03:04:35 AM

Title: report studio: style css
Post by: a.info on 20 Nov 2012 03:04:35 AM
Hi all,

how can I apply a css style to a list report in report studio?
thank you very much
Title: Re: report studio: style css
Post by: blom0344 on 20 Nov 2012 03:56:32 AM
you can use .css styles in the report design for nearly every part of the report. Check out the GlobalreportStyles.css content. you can also add your own classes there if you want these..
Title: Re: report studio: style css
Post by: a.info on 20 Nov 2012 04:16:08 AM
thank you for your response.
how I apply it to my list in the report?
Title: Re: report studio: style css
Post by: Lynn on 20 Nov 2012 02:05:02 PM
There is a "Classes" property in the Miscellaneous section of properties for various list elements like list column body or list column title. Click the ellipses next to that property to choose what you want from those defined.
Title: Re: report studio: style css
Post by: bdbits on 27 Nov 2012 02:33:56 PM
I would not modify the global stylesheets on the server, as they apply to all reports, but they do serve as a great reference for the css classes you'll find in a report. Lynn pointed out the GUI way to do CSS, but I prefer to drop an HTML item(s) on the report and define my styles there using standard markup. Even better if you want to apply it to multiple reports, set up a dummy report (aka a component library/report) containing your reusable items and use layout component references. Then if you need to apply a style change to all those reports, you just have one place to update.
Title: Re: report studio: style css
Post by: blom0344 on 27 Nov 2012 03:32:35 PM
Quote from: bdbits on 27 Nov 2012 02:33:56 PM
I would not modify the global stylesheets on the server, as they apply to all reports

As a Dutch saying says: "There are many ways to Rome".

I did not mean modifying existing classes, simply add your own section of classes. For every report you can then still make the choice which classes to use.