Page 1 of 1

Export Mefafile does not work

Posted: Wed Apr 27, 2005 11:16 am
by 8123986
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

Posted: Wed Apr 27, 2005 11:44 am
by narcis
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.