Hi,
I am using the following code to copy a chart as an emf to the clipboard.
void CTeeChartDotNet2::CopyToClipboardEnhMetafile()
{
Steema::TeeChart::Export::MetafileFormat metaFile = mControl->Chart;
metaFile.bEnhanced = true;
metaFile.CopyToClipboard();
}
In version 2.0.2652.22325 it works perfect. With version 2.0.2987.19069 it produces none or corrupt clipboard contents.
What's wrong? Is there something missing? Is there a new interface?
Thanks
Sancho
CopyToClipboardEnhMetafile
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Sancho,
Could you please have a look at this thread about the same issue?
In the meantime you could use something as what Ton suggested, for example:
Thanks in advance.
Could you please have a look at this thread about the same issue?
In the meantime you could use something as what Ton suggested, for example:
Code: Select all
Bitmap bmp = tChart1.Bitmap;
Clipboard.Clear();
Clipboard.SetImage(bmp);
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 |