Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Simple Java Application Creating and Saving Different Charts
Simple Java Application Creating and Saving Different Charts [message #658614] Wed, 09 March 2011 09:26 Go to next message
Carl Emmoth is currently offline Carl Emmoth
Messages: 8
Registered: March 2010
Junior Member
The application will:

1) Fully configurable paths and database selection
2) Make charts (pie, line and 3d bars)
3) Save it to design, report and html
4) View the html in a JEditorPane

The application will use the test database to retrieve data with some restrictions. Only the two first columns from the sql-selection will be used, and the first one must be in string-format.

1) You need to include the follwing jar-files (included in birt engine, model and chart api):
engineapi.jar
coreapi.jar
com.ibm.icu...jar
modelapi.jar
js.jar
org.apache.commons.codec...jar
org.eclipse.birt.chart.engine...jar
org.eclipse.birt.chart.reportitem.source...jar
org.eclipse.emf.ecore...jar
org.eclipse.emf.common...jar
org.eclipse.emf.ecore.xmi...jar
scriptapi.jar

2) Create icons in "./resources" folder or ignore them.

3) If you need to write a report, change the IRunAndRenderTask to one IRunTask and one IRenderTask.

Source:

Pastbin:

http://pastebin.com/VUvyDsgW

Link to other forums:

"Charts Example with JDBC"

Home / DevShare / Deploying BIRT Reports

http://www.birt-exchange.org/org/devshare/deploying-birt-rep orts/1171-charts-example-with-jdbc/

[Updated on: Wed, 09 March 2011 09:28]

Report message to a moderator

Re: Simple Java Application Creating and Saving Different Charts [message #658642 is a reply to message #658614] Wed, 09 March 2011 11:07 Go to previous message
Carl Emmoth is currently offline Carl Emmoth
Messages: 8
Registered: March 2010
Junior Member
Get the jars from the Report Engine. Here's for Birt 2.5.2:

http://download.eclipse.org/birt/downloads/build.php?build=R -R1-2_5_2-201002221500

Also include the following jars (the sample database):

[report engine folder]\ReportEngine\plugins\org.eclipse.birt.report.data.od a.jdbc...\odajdbc.jar

[report engine folder]\ReportEngine\plugins\org.eclipse.birt.report.data.od a.sampledb...\sampledb.jar

Remember to have valid folders or create them!
Previous Topic:Problem importing BIRT code in GWT application
Next Topic:create a report in code
Goto Forum:
  


Current Time: Fri Oct 31 10:04:24 GMT 2014

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

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