Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 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 Juyeon
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)) {
logger.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 Williams
Messages: 1639
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.

Michael

Add interactivity, scheduling, sharing, live Excel export, and JS integration to your BIRT app with the new, free BIRT server, BIRT iHub F-Type.
Previous Topic:URL Escape codes coming in chart x axis label
Next Topic:Background color on date cells
Goto Forum:
  


Current Time: Fri Oct 24 19:03:00 GMT 2014

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

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