[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,

Is there a way in the .rptdesign to cause the generated HTML element to define a class so that the external stylesheet could define a style for that class? In another thread, you described how to use a bookmark expression to cause the generated element to define an id, so that the external stylesheet could define a style for that id. But is there a way to cause the generated element to define a classname of my choosing?

Thank you.

-- Rowan


Jason Weathersby wrote:
Günter,

What version of BIRT are you using?

In BIRT 2.3 you can reference and external style sheet in the report design. Look at the use style right click context menu in the outline view. There is a checkbox for including CSS file at view time. This only applies to HTML output though.

Jason

Günter wrote:
Hi,

we are using BIRT to generate HTML reports that are embedded in other pages. The main page already includes a CSS stylesheet.

Is there a way to tell BIRT to set classnames for report items that refer to classes which are NOT defined as styles in the current BIRT report design?

I thought of using an event handler to apply the names, but there is no API in IDataItem or IDataItemInstance that refers to something like a CSS classname.

Thanks for your help!

Best regards,
Günter