Copying JFreeChart through the Clipboard

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
amarnath578
Posts: 22
Joined: Tue Aug 25, 2009 8:02 pm
antibot: No, of course not.

Copying JFreeChart through the Clipboard

Post by amarnath578 » Mon Sep 21, 2009 4:00 pm

Hi,

I am currently working on copying a JFreeChart to the System Clipboard so that it can be emailed just by pasting the cpoied chart. I did use the export functionality available with JFreeChart to save the charts as JPEG or PNG images. However, this time the users do not want the charts to be saved on disk, rather directly paste them in outlook in order to email them.

Please let me know how this can be achieved.

Thanks,
Amar

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Re: Copying JFreeChart through the Clipboard

Post by david.gilbert » Tue Sep 22, 2009 8:39 pm

Since version 1.0.13, you can just call the doCopy() method in the ChartPanel class.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

Locked