Reputation: 1929
I have created some cognos reports and i want to override the global design in some of them (prompt pages and report pages).
I would like to know if it is possible to load different custom css files per report.
If this is not possible then how can i load a global custom css together with the global cognos css?
Upvotes: 0
Views: 2951
Reputation: 513
There are a lot of different ways to style reports via CSS. The accepted answer works but it may not be the most friendly for current and future developers. You can modify the existing global styles pretty easily, either via the existing classes or by adding your own. If you are looking at a per-report scenario, you can create local classes within the report itself rather than juggling multiple CSSs on the server.
I wrote a blog post on this awhile back with more detail (404, blog was removed).
Upvotes: 0
Reputation: 1173
Add an HTML Item with something like
<link href="http://your.server.com/css/reports.css" type="text/css" rel="stylesheet">
in the header of your report.
Upvotes: 2