Page 1 of 1

Copy to Clipboard as JPEG

Posted: Wed Dec 10, 2008 4:37 pm
by 13045625
I am using the CopyToClipboard function as follows:

_tcChart.Export.Image.JPEG.CopyToClipboard()

It is very useful to copy from a displayed chart and then paste into a report etc. But I've noticed that it seems to copy as a bitmap format not a jpeg and the file size after pasting from the clipboard is very large. I tried to export as a metafile but the quality of the image is too poor. Any suggestions?

Posted: Thu Dec 11, 2008 11:37 am
by narcis
Hi jenb,

Using any of the commands below in a button click event produce very similar sized charts here. Clipboard chart is a JPEG too as JPEG encoding information is used. We found that file generated from the clipboard image varies slightly depending on the software used for saving it.

Code: Select all

			tChart1.Export.Image.JPEG.CopyToClipboard();
			tChart1.Export.Image.JPEG.Save(fileName);