Page 1 of 1
copy pdf formatted image to the Clipboard
Posted: Fri Sep 19, 2014 2:32 am
by 15656007
Hello,
I use the following code to save the chart to the Clipboard with pdf format, and when I paste it in a document ,it will be messy code, not a image. What should I do?Thanks!
Code:
Code: Select all
tChart1.Export.Image.PDF.CopyToClipboard();
Re: copy pdf formatted image to the Clipboard
Posted: Fri Sep 19, 2014 8:58 am
by Christopher
Candy wrote:Hello,
I use the following code to save the chart to the Clipboard with pdf format, and when I paste it in a document ,it will be messy code, not a image. What should I do?Thanks!
Code:
Code: Select all
tChart1.Export.Image.PDF.CopyToClipboard();
I'm not sure if it is possible to copy the contents (text, images etc.) of an entire PDF file to the clipboard. Have you seen it done?
Re: copy pdf formatted image to the Clipboard
Posted: Fri Sep 19, 2014 9:35 am
by 15656007
Hello,
I'm not sure,so I want to know what the function about this method?
By other words, this method can't used for the pdf format? Thanks!
Re: copy pdf formatted image to the Clipboard
Posted: Mon Sep 22, 2014 8:34 am
by Christopher
Candy wrote:Hello,
I'm not sure,so I want to know what the function about this method?
By other words, this method can't used for the pdf format? Thanks!
No, as you have seen, the CopyToClipboard() method of the PDF export class does not work as expected. This method will be deprecated in future versions of TChart.