Export Mefafile does not work
Posted: 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
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