Page 1 of 1

CopyToClipboard produces error

Posted: Tue Aug 04, 2009 11:01 pm
by 9340973
I am porting Delphi code to WPF/C#.

My delphi code to copy an image to the clipboard was:

FChartTimeSeries.ChartDisplay.BufferedDisplay = False;
FChartTimeSeries.ChartDisplay.CopyToClipboardBitmap;
FChartTimeSeries.ChartDisplay.BufferedDisplay = True;

I replaced this with the following C# code:

FChartTimeSeries.ChartDisplay.Export.Image.Bitmap.CopyToClipboard();

I get the following error:

No imaging component suitable to complete this operation was found.

If instead I use the code:

FChartTimeSeries.ChartDisplay.Export.Image.JPEG.CopyToClipboard();

I get the following error:

The image cannot be decoded. The image header might be corrupted.

What is the correct way to copy the current TeeChart image to the clipboard?

Thanks,
Kent

Re: CopyToClipboard produces error

Posted: Thu Aug 06, 2009 7:56 am
by 10050769
Hello kent,
What is the correct way to copy the current TeeChart image to the clipboard?
If you want to copy current Chart to clipboard, only you need to add next line as next:

Code: Select all

  tChart1.Export.Image.JPEG.CopyToClipboard();
Please, check next line works fine in your application TeeChartFor .Net with C#.

I hope will helps.

Thanks,

Re: CopyToClipboard produces error

Posted: Thu Aug 06, 2009 10:46 am
by 10050769
Hello kent,

I could reproduce your issue, with last version of WPF, but not in WinForms. I added this to list of Bug Report with number [TW16014341]. we will try to fix it for next versions of TeeChart .NET.


Thanks,

Re: CopyToClipboard produces error

Posted: Mon Aug 17, 2009 4:30 pm
by 9340973
I downloaded the latest TeeChart.NET (4.0.2009.28597) and I still get the same error:

The image cannot be decoded. The image header might be corrupted.

The code is: FChartTimeSeries.ChartDisplay.Export.Image.JPEG.CopyToClipboard();

Re: CopyToClipboard produces error

Posted: Tue Aug 18, 2009 12:27 pm
by 10050769
Hello BlueMonkey,

Thanks, for information, I could reproduce your problem and we will review the bug with number [TW16014341], because the issue doesn't seems to be solved.
We'll tell you when works fine.

Thanks,