Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Html reports without charts(Html reports without charts)
Html reports without charts [message #998335] Wed, 09 January 2013 15:31 Go to next message
Rafael Fogel is currently offline Rafael Fogel
Messages: 21
Registered: January 2013
Junior Member
Hello,

am i using birt with rcp and i can't generate a html report with charts embeded. Tables work fine but charts (images) are not renderized

My code:

EngineConfig config = new EngineConfig();
config.setEngineHome("C:/Users/Junger/Desktop/birt-runtime-4_2_1/ReportEngine");

IReportEngineFactory factory = (IReportEngineFactory) Platform.createFactoryObject( IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY );

IReportEngine engine = factory.createReportEngine( config );
engine.changeLogLevel( Level.WARNING );


IReportRunnable design = null;
try {
design = engine.openReportDesign(rpt);
} catch (EngineException e) {
e.printStackTrace();
}

IRunAndRenderTask task = engine.createRunAndRenderTask(design);

//Set parameter values and validate
task.setParameterValue("pAcc", account);
task.validateParameters();

//Setup rendering to HTML
HTMLRenderOption options = new HTMLRenderOption();
options.setOutputFileName("output.html");
options.setOutputFormat("html");
options.setImageDirectory("output");
options.setEmbeddable(false);

options.setImageHandler(new HTMLServerImageHandler());

options.setSupportedImageFormats("PNG;GIF;JPG;BMP;SWF;SVG");

task.setRenderOption(options);

//run and render report
try {
task.run();
} catch (EngineException e) {
e.printStackTrace();
}

browser.setUrl("...strategy.html");


It seems like a missing library, on eclipse's Report Designer works fine. What i'm doing wrong?
Re: Html reports without charts [message #998657 is a reply to message #998335] Thu, 10 January 2013 07:54 Go to previous messageGo to next message
Rafael Fogel is currently offline Rafael Fogel
Messages: 21
Registered: January 2013
Junior Member
Someone?
Re: Html reports without charts [message #998949 is a reply to message #998657] Thu, 10 January 2013 21:54 Go to previous messageGo to next message
Michael Williams is currently offline Michael Williams
Messages: 1424
Registered: July 2009
Senior Member

There are no errors? What do the logs say?

Michael
Actuate – The BIRT Company™

BIRT Developer Center
Check out the new, free BIRT Viewer Toolkit
Re: Html reports without charts [message #999143 is a reply to message #998949] Fri, 11 January 2013 07:46 Go to previous messageGo to next message
Rafael Fogel is currently offline Rafael Fogel
Messages: 21
Registered: January 2013
Junior Member
I solved. The problem was the bundle org.eclipse.birt.chart.reportitem wasn't included.

Thanks anyway.
Re: Html reports without charts [message #1000900 is a reply to message #999143] Tue, 15 January 2013 11:44 Go to previous message
Michael Williams is currently offline Michael Williams
Messages: 1424
Registered: July 2009
Senior Member

Ah. Thanks for updating the thread. Glad you found out what was wrong!

Michael
Actuate – The BIRT Company™

BIRT Developer Center
Check out the new, free BIRT Viewer Toolkit
Previous Topic:Best Practice of How to Manage reports from different Environments? Dev, QA and Prod?
Next Topic:Problem with scripted Dataset
Goto Forum:
  


Current Time: Sat Apr 19 15:59:52 EDT 2014

Powered by FUDForum. Page generated in 0.01628 seconds