BIRT in eclipse [message #1058795] |
Wed, 15 May 2013 03:16  |
Eclipse User |
|
|
|
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 00:30  |
Eclipse User |
|
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.05594 seconds