[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.birt] Re: How can I set a CSS class name for a report item?
|
Jason,
I am not able to get this to work.
What I want to achieve is:
- My HTML main page includes a stylesheet, then writes some header
information, then includes a BIRT generated report
- In the BIRT report, I want to use styles (CSS classes) that are defined in
the stylesheet included in the main page
- An extra item (if I get the above to work) is that I want to select the
used styles dynamically in some event handler
I tried to apply the style both in the beforeFactory event of the report
(which is rather difficult because I did not find a way in the API to
iterate over all items in the report) and via Highlight rules. In both
cases, I have the following problems:
- if I assign a style that is not defined in the current report design (or
the underlying theme), I get an exception "unknown style"
- if a style with that name is defined, I can set it, but the connection to
my original style is broken because BIRT does not apply the original class
name but rather defines a new class (Style_5 in my case) and uses this one
(I have tried to create a CSS file in the resource folder that defines the
same class names as my real stylesheet but without contents )
Do you have any hints how I could solve this?
Thanks,
Günter