CopyToClipboard produces error

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
BlueMonkey
Newbie
Newbie
Posts: 20
Joined: Mon Feb 14, 2005 5:00 am
Location: Eastern Washington, US

CopyToClipboard produces error

Post by BlueMonkey » Tue Aug 04, 2009 11:01 pm

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

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: CopyToClipboard produces error

Post by Sandra » Thu Aug 06, 2009 7:56 am

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,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: CopyToClipboard produces error

Post by Sandra » Thu Aug 06, 2009 10:46 am

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,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

BlueMonkey
Newbie
Newbie
Posts: 20
Joined: Mon Feb 14, 2005 5:00 am
Location: Eastern Washington, US

Re: CopyToClipboard produces error

Post by BlueMonkey » Mon Aug 17, 2009 4:30 pm

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();

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: CopyToClipboard produces error

Post by Sandra » Tue Aug 18, 2009 12:27 pm

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,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply