[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.birt] Re: How to access the underlying chart object in a report design

Jason,

I'll have a look at the example. Here is a description of what I'm trying to do:

I need to render to both html and into a JPanel as the end application uses BIRT in 2 ways:

1). Text reports - For BIRT, use a standard HTML render and a Java browser plugin to display it to the user. I already have the exmaple HTML emitter creating the html and image files for this. Within the application this will look like a page of information, much like 'print preview' view.

2). Charting - The rendering of a BIRT chart into a JPanel component allowing the image to be shown as a component of an application window. My code is pulling a named Chart definition from openReportDesign(rtpdesign) and would like to pull the dataSet defined within the named chart (and possibly the report parameters). This will allow me to perform a lightweight render (in a JPanel) of the Chart instead of a heavyweight render (as per 1 above).

My code is pulling the chart and is able to render the image to the JPanel. As I have not provided any data binding, only the default sample chart is being displayed.

The styling and content of both text reports and charts is being performed by none programming staff. To limit their learning curve, I'm using BIRT IDE to define both 1 and 2 above and hence why I'm pulling the chart information from a rptdesign.

I hope this explains,

Stuart.

Jason Weathersby wrote:
Stuart,

I am not sure what you mean. I thought you were rendering to html.
If you are using the Chart engine standalone look at the AutoDataBindingViewer example in the org.eclipse.birt.chart.examples plugin. You can check it out of CVS.


Jason