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
CopyToClipboard produces error
-
- Newbie
- Posts: 20
- Joined: Mon Feb 14, 2005 5:00 am
- Location: Eastern Washington, US
Re: CopyToClipboard produces error
Hello kent,
Please, check next line works fine in your application TeeChartFor .Net with C#.
I hope will helps.
Thanks,
If you want to copy current Chart to clipboard, only you need to add next line as next:What is the correct way to copy the current TeeChart image to the clipboard?
Code: Select all
tChart1.Export.Image.JPEG.CopyToClipboard();
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 |
Instructions - How to post in this forum |
Re: CopyToClipboard produces error
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,
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 |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 20
- Joined: Mon Feb 14, 2005 5:00 am
- Location: Eastern Washington, US
Re: CopyToClipboard produces error
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();
The image cannot be decoded. The image header might be corrupted.
The code is: FChartTimeSeries.ChartDisplay.Export.Image.JPEG.CopyToClipboard();
Re: CopyToClipboard produces error
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,
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 |
Instructions - How to post in this forum |