Hello everyone,<br />
<br />
I'm facing a problem when trying to use CSS in library/rptdesign:<br />
<br />
- I have a library with already designed objets, I use a CSS called for instance "default_blue.css" and custom styles are defined in this CSS and used/applied on the library's objects.<br />
<br />
- I use this library's objects in a .rtpdesign but I dont want to use the "default_blue.css" but the "default_orange.css" . So I imagine by importing the "default_orange.css" in the rptdesign, it should overwrite the styles defined in "default_blue.css" (of course, styles defined in default_blue and default_orange have the same names).<br />
<br />
- When I generate the report, only styles in "default_blue.css" (so the one in my library ) are applied , not the one in "default_orange.css" .<br />
<br />
Is it normal ? Do I have to do something to overwrite styles in the css of the library by my styles in the css of the rptdesign ? <br />
<br />
I'm trying to use this exemple : <a class='bbc_url' href='
http://www.birt-exchange.org/org/devshare/designing-birt-reports/1466-styling-report-and-script-to-change-default-chart-palette/'>http://www.birt-exchange.org/org/devshare/designing-birt-reports/1466-styling-report-and-script-to-change-default-chart-palette/</a> <br />
<br />
but when scripting in the rptdesign "before factory" : <br />
<br />
1) In this exemple, I imported the default_orange.css file in my report ( so it appears in the Outline)<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
dh = reportContext.getDesignHandle();
dh.addCss(default_orange.css);
}</pre>
<br />
OR <br />
<br />
2) In this exemple I have did not import the CSS file in the rptdesign but my CSS file is in my resources folder, in a folder called CSS : <br />
<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
dh = reportContext.getDesignHandle();
dh.addCss(CSS/default_orange.css);
}</pre>
<br />
Thanks in advance.<br />
<br />
Regards,<br />
<br />
Edit : I'm using BIRT 2.6.2