Saving JFree charts

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
juhi
Posts: 15
Joined: Wed Jul 14, 2004 7:19 pm

Saving JFree charts

Post by juhi » Fri Jul 23, 2004 10:21 pm

Hi David,

I've seen that the charts can be saved as .png files and this happens really great with good precision. the developer's guide has a section that talks about saving images to pdf documents. Is it possible to save the image directly into another application such as MS Word, Power Point, Excel, etc. instead of just saving them as images? Having this feature of saving the chart into a powerpoint or word(etc) file would really help where large data is being dealt with (as in my case). Would highly appreciate your help in this!

Thanks,
Juhi.

angel
Posts: 899
Joined: Thu Jan 15, 2004 12:07 am
Location: Germany - Palatinate

Post by angel » Mon Jul 26, 2004 7:15 am

Take a look at the Jakarta POI Project - Java API To Access Microsoft Format Files

http://jakarta.apache.org/poi/

arnaud
Posts: 86
Joined: Wed Mar 19, 2003 2:59 pm
Location: Paris, France
Contact:

Post by arnaud » Mon Jul 26, 2004 10:17 am

Hello,

Some more infos on this forum : I had made some tries to add a clipboard functionality to my swing app. As mentionned, I wanted to get a vector format to have a nice display/printing. I droped the idea of SVG as it gets too difficult for an end user to manage how to add an SVG image in their word document. As for now, I also dropped wmf, as the only library I had found was not working so well - 90-95% OK but some issuses remained ; this is was partially a problem of WMFWtriter (fonts display not well renderered - Piet Jonas did some work to enhance this), but mainly a problem of WMF primitives that are not so complete as Java2D...

I had no time going further, that's why I did implement a bitmap copy/paste with high resolution PNG encoding (have a look at the mentionned links).

If I'll have more time, I'll have a try with an other java vector graphics library : FreeHEP Java Library.

Hope this can help you a little,
Regards,
Arnaud

Locked