Unwanted blue border
-
- Newbie
- Posts: 5
- Joined: Mon Mar 31, 2008 12:00 am
Unwanted blue border
I program in VB.NET using VS2008. I use Tchart for Net V3 (version March 2008) to create graphics images. As seen in
http://tonheuv.speed.planet.nl/teechart.doc a blue border around the chart appears when I paste a clipboard copy (of a wmf file read from disk) into a word document. Anybody any ideas to get rid of the blue border? Thanks!
http://tonheuv.speed.planet.nl/teechart.doc a blue border around the chart appears when I paste a clipboard copy (of a wmf file read from disk) into a word document. Anybody any ideas to get rid of the blue border? Thanks!
Regards,
Ton Heuvelmans
Ton Heuvelmans
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Ton,
Thanks for the information.
This seems a bug to me and I've added it (TF02012951) to our defect list to be fixed for next releases.
http://www.teechart.net/support/viewtopic.php?t=3682
Thanks for the information.
This seems a bug to me and I've added it (TF02012951) to our defect list to be fixed for next releases.
Yes, this is also a known issue with MetaFile, you can find more information about it here:// MetaFile.CopyToClipboard() 'does nothing, march 2008
http://www.teechart.net/support/viewtopic.php?t=3682
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 |
-
- Newbie
- Posts: 5
- Joined: Mon Mar 31, 2008 12:00 am
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Ton,
For TF02012951 no, we include a number of bug fixes on each maintenace release as you can see in the release notes.
Regarding the CopyToClipboard issue, yes, there's no solution without going unmanaged. We don't have plans for that at the moment.
For TF02012951 no, we include a number of bug fixes on each maintenace release as you can see in the release notes.
Regarding the CopyToClipboard issue, yes, there's no solution without going unmanaged. We don't have plans for that at the moment.
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 |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Ton,
As an update to the issues described on this thread, the code you sent has two problems:
1. It uses the deprecated property Enhanced (or rather the field associated with it, bEnhanced). The EMFFormat property should be used instead, for example:
BTW: .NET only supports EMF files and does not support WMF files.
2. When you copy the file from disk you load it as a Bitmap and not as a Metafile. Metafiles cannot be copied to the clipboard using .NET classes/methods. However, we fixed teechart's MetaFile.CopyToClipboard method but the fix will only work fine in x86 CPU machines as the solution involves using pinvoke to a x86 specific dll.
As an update to the issues described on this thread, the code you sent has two problems:
1. It uses the deprecated property Enhanced (or rather the field associated with it, bEnhanced). The EMFFormat property should be used instead, for example:
Code: Select all
Steema.TeeChart.Export.MetafileFormat MetaFile = tChart1.Export.Image.Metafile;
MetaFile.Height = tChart1.Height;
MetaFile.Width = tChart1.Width;
MetaFile.CopyToClipboard();
MetaFile.EMFFormat = System.Drawing.Imaging.EmfType.EmfOnly;
MetaFile.Save(@"c:\temp\myTChart.emf");
2. When you copy the file from disk you load it as a Bitmap and not as a Metafile. Metafiles cannot be copied to the clipboard using .NET classes/methods. However, we fixed teechart's MetaFile.CopyToClipboard method but the fix will only work fine in x86 CPU machines as the solution involves using pinvoke to a x86 specific dll.
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 |
-
- Newbie
- Posts: 5
- Joined: Mon Mar 31, 2008 12:00 am
-
- Newbie
- Posts: 5
- Joined: Mon Mar 31, 2008 12:00 am
unwanted blue border
Unfortunately I did not manage to get it to work (yes, I installed latest version of the TeeChart .NET v3 softeware). MetaFile.CopyToClipboard() still does nothing.
Regards,
Ton Heuvelmans
Ton Heuvelmans
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Ton,
Sorry if I didn't explain myself. The fix is not available in the current release, it will be included in the next maintenance release due to be out on early May.
Sorry if I didn't explain myself. The fix is not available in the current release, it will be included in the next maintenance release due to be out on early May.
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 |
-
- Newbie
- Posts: 5
- Joined: Mon Mar 31, 2008 12:00 am