CopyToClipboardEnhMetafile

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Sancho
Newbie
Newbie
Posts: 1
Joined: Tue Dec 12, 2006 12:00 am

CopyToClipboardEnhMetafile

Post by Sancho » Fri Apr 18, 2008 8:15 am

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
:?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Apr 18, 2008 8:29 am

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:

Code: Select all

			Bitmap bmp = tChart1.Bitmap;			
			Clipboard.Clear();
			Clipboard.SetImage(bmp);
Thanks in advance.
Best Regards,
Narcís Calvet / 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