I have weblogic where I can deploy this java application and database where I have data. Can you recommend me some free java library which can generate charts from my data ?
I found http://oreports.com/ but their forum seems to be inactive for a long time so when I want to advice I have problem
Try out Jasper Reports.
List of open source options for generating reports in java.
I personally recommend JasperReports.
I found this: http://art.sourceforge.net/ which is exactly what I need
Assuming nothing like presenting charts from data directly without any java app. (So no informatica like tools) jfreechart is an option. have a lookt at fusion-charts too
Related
I am looking for an example on using Highcharts with data from MYSQL in java with Vaadin framework. I literally don't know whether it is possible.When i tried for Vaadin InvientCharts I was redirected to Highcharts. Highcharts looks promising for my project but i want to use along with Java and Mysql. Please elaborate me if I am wrong. I am beginner to this.
Yes, it is possible. Invient Charts (which is Java wrapper for JavaScript-based HighCharts) is totally independent on the data source. The Invient Charts package contains instructions and an example how to use it in your Vaadin project.
You can use Vaadin SQLContainer addon to get the data from your database. There's a simple example behind that link.
You can use JPAContainer or HbnContainer.
The addon suggested my #miq seems to be not maintained anymore.
This one looks more current:
https://vaadin.com/directory#!addon/highchartsapi-add-on
I am using JasperReports in my project. During the generation of reports, I am forced to retrieve data from different tables in the database. I have used subreports, but this solution is not satisfactory for me. Main reason for this is fact that for each report I have to prepare two jrxml files. For the assumptions of my project this is not effective.
Is there an alternative to subreports? If it is important I use Hibernate.
Mateusz, you can prepare data source manually in java code and pass is to the report.
Sometimes the good subreport's alternative is using group(s) in report.
At a higher level what are you trying to achieve ?
If the reason you're using subreports is to embed mulitple graphs/chart widgets that display different but related data, then an alternative way to doing this is using subdatasets
Innformation on using subdatasets can be found in iReport Ultimate Guide, but basically they are extra sub queries you can run in addition to the main report query, whose results can be access by Charts/Charts Pro widgets (see the chart data tab in these widget properties)
I have developed a Java application and now i want to give some simple printing support. Something like printing invoices , some reports etc.
Right now I'm creating that stuff in html, showing it on JEditorPane. but html support is quite poor and I'm really fade up of that thing. Is there any better way of doing such thing?
Any better browser component, or better tool to create such simple reports? (JDK 1.6)
I love JasperReports for that. In combination with iReport (a GUI for creating the reports) is the best I could find for free in Java to do reporting.
You can also generate PDFs files with iText for printing. Although I think it will be easier to use iReports.
JasperReports is a pretty nice reporting tool for Java. It could be a bit heavy weight for what you want.
Another solution is BIRT which is very simple to use : it is an Eclipse project with a visual editor for your reports. The report is built in 3 steps :
create a DataSource
create a DataSet on this DataSource
create your report, based on the DataSet
DynamicReports is an open source reporting tool. You can create reports quickly without needing to use a visual designer. See the examples.
When printing invoices and reports, no doubt you want them to look more than basic - hence your problem. If your swing application has a server-side component, then look at libraries like Jasper and Docmosis to produce decent reports from the server (since heavy-weight server side is typically aok). If you really need a library just for a client app, there's an old library called JViewPro which is pretty yuk to code with, but can let you layout reports in code for displaying and printing and is a single jar (just be careful about memory usage).
I want to know how to convert html file to image. How do I do this?
You can checkout the source code for the popular BrowserShots service,
http://browsershots.org/
If you're running Windows, and have the GD library installed, you can use imagegrabwindow. I've never used it myself, but as always, the PHP site has lots of documentation and examples.
Use:
WKHTMLTOPDF.
It also has binding to PHP, or you can run it yourself from command line.
Problem is that you need to implement all the functionality of a browser and an HTTP stack (and this still does not deal with the case where the content is modified using javascript).
As John McCollum says, if you've got the website open in a browser on your PC, then you can use imagegrabwindow or snapsIE (MSIE only)
If you want to to be able to get a snapshot using code only, then you might want to look at one of the off the shelf solutions - AFAIK there are several programs (at least 2 of which are called html2pdf) which will generate a PDF of static html - and its relatively easy using standard tools to trim this to window size and convert to an image file.
e.g. https://metacpan.org/pod/distribution/PDF-FromHTML/script/html2pdf.pl
I´m developing a Java solution for manage an iTunes Library (ITL file). The ITL format is a propietary one.
I'm looking for an implementation or a documentation about ITL format but Google can't find anything useful.
Does anyone have experience about that? Where to find more information?
Thanks in advance.
There is an open source project called titl that sounds exactly what you're looking for.
The repository is here: http://code.google.com/p/titl/
Harri
iTunes has an api that you can use to inform iTunes of changes without having to modifying the iTunes ITL file directly. On OSX you can use Applescript, on Windows a DLL that Ive manipulate using Jacob and Java
Most of the time, Apple folks uses preferences list format (or its XML counterpart). As an example, it is the case for iPoho Library file. I have had success parsing this file using commons configuration in the past. Maybe you could try it.