Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » BIRT in eclipse(Make Optional Chart)
BIRT in eclipse [message #1058795] Wed, 15 May 2013 07:16 Go to next message
Hwang Juyeon is currently offline Hwang JuyeonFriend
Messages: 3
Registered: May 2013
Junior Member
Hi all,

I'm make reporting project using BIRT.

I want to make report project like this

1) select option about report menu
- chart : yes/no
2) if choose 'yes' make chart in document.
if choose 'no' not make chart in document.

Noew I just make report like this
(using BirtEngine)

[souce code]
public byte[] renderReport(String documentPath, String format, String configId) {
StopWatch stopWatch = new StopWatch();

Renderer renderer = null;
if ("html".equals(format)) {
renderer = new HtmlRenderer(birtEngine);
} else {
renderer = new CustomRenderer(birtEngine, format);

String fileName = getOutputFileName(documentPath);
byte[] result = renderer.renderReport(documentPath, fileName);

if (logger.isLoggable(Level.INFO)) {"output is rendered in " + stopWatch.stop() + " ms, format: " + format + ", document: " + documentPath);
return result;

Thanks for the help
Re: BIRT in eclipse [message #1058964 is a reply to message #1058795] Thu, 16 May 2013 04:30 Go to previous message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

You could add a parameter to your report design for the selection to show the chart or not. If no, you can grab the chart and drop it in the beforeFactory method of the design.


Developer Evangelist, Silanis
Previous Topic:URL Escape codes coming in chart x axis label
Next Topic:Background color on date cells
Goto Forum:

Current Time: Thu Jul 18 02:21:51 GMT 2024

Powered by FUDForum. Page generated in 0.03283 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top