Export to PNG.

TeeChart for ActiveX, COM and ASP
Post Reply
venuk
Newbie
Newbie
Posts: 1
Joined: Mon Oct 16, 2006 12:00 am

Export to PNG.

Post by venuk » Wed Nov 15, 2006 11:42 pm

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

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

Post by Narcís » Thu Nov 16, 2006 8:51 am

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?
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