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
Export Mefafile does not work
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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 |
Instructions - How to post in this forum |