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?
Copy to Clipboard as JPEG
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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);
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |