I get an error at asPNG.SaveToFile. This works on some of our machines, unfortunatly does not on production.
I am guessing installation issue.
Any ideas.
TChart1.AddSeries(TeeChart.ESeriesClass.scBar)
TChart1.Series(0).XValues.DateTime = True
TChart1.Series(0).Marks.Visible = False
TChart1.Legend.Visible = False
TChart1.Walls.Visible = False
'TChart1.Axis.Left.Visible = False
TChart1.Aspect.View3D = False
TChart1.ApplyPalette(TeeChart.EColorPalette.cpTeeChart)
For j = 0 To valueCount - 1
With TChart1.Series(0)
.AddXY(DateValue(dateArray(j)).ToOADate, Double.Parse(valueArray(j)), "", 255)
End With
Next
With TChart1.Export
.asPNG.CompressionLevel = 50
.asPNG.Height = 500
.asPNG.Width = 700
.asPNG.SaveToFile(outpath)
End With
Export to PNG.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi venuk,
It works fine for me here using v7.0.1.2, which is the latest version available at the client area. Are you using the same TeeChart Pro ActiveX version in the development machines and in the production machine?
It works fine for me here using v7.0.1.2, which is the latest version available at the client area. Are you using the same TeeChart Pro ActiveX version in the development machines and in the production machine?
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 |