Skip to main content



      Home
Home » Archived » BIRT » BIRT in eclipse(Make Optional Chart)
BIRT in eclipse [message #1058795] Wed, 15 May 2013 03:16 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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.
Previous Topic:URL Escape codes coming in chart x axis label
Next Topic:Background color on date cells
Goto Forum:
  


Current Time: Wed May 07 13:08:26 EDT 2025

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

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

Back to the top