Export Mefafile does not work

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
CitoTChartUser
Newbie
Newbie
Posts: 8
Joined: Mon Mar 01, 2004 5:00 am

Export Mefafile does not work

Post by CitoTChartUser » Wed Apr 27, 2005 11:16 am

Saving to file.emf always creates a file with lengt=0, i can save the same chart to other formats succesfully (like png, bmp, jpg).

I'm using Teechart Pro for Visual Studion.NET V1 runtime version : v1.1.4322, version: 1.1.1499.42325


'--> this works fine!!
Public Shared Sub SavePNGImage(ByVal chart As TChart, ByVal filename As String)
With chart.Export.Image.PNG
.Width = 800
.Height = 600
.Save(filename)
End With
End Sub


'--> this creates an empty file !!!!
Public Shared Sub SaveEMFImage(ByVal chart As TChart, ByVal filename As String)
With chart.Export.Image.Metafile
.Enhanced = True
.Width = 800
.Height = 600
.Save(filename)
End With
End Sub



Please inform me if a fix is available asap,

Regards, Jan

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

Post by Narcís » Wed Apr 27, 2005 11:44 am

Hi Jan,

Your code works fine here using latest release (Build 1.1.1937.15964). You can download the latest version at our Customer Download Area. Running the installer will update your current version.
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