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 20:31 Go to next message
Rafael Fogel is currently offline Rafael FogelFriend
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 12:54 Go to previous messageGo to next message
Rafael Fogel is currently offline Rafael FogelFriend
Messages: 21
Registered: January 2013
Junior Member
Someone?
Re: Html reports without charts [message #998949 is a reply to message #998657] Fri, 11 January 2013 02:54 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1687
Registered: July 2009
Senior Member

There are no errors? What do the logs say?

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.
Re: Html reports without charts [message #999143 is a reply to message #998949] Fri, 11 January 2013 12:46 Go to previous messageGo to next message
Rafael Fogel is currently offline Rafael FogelFriend
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 16:44 Go to previous message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1687
Registered: July 2009
Senior Member

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

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: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 Dec 20 01:49:15 GMT 2014

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

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