Teechart commander v2012

TeeChart for ActiveX, COM and ASP
Post Reply
ontsnapt
Newbie
Newbie
Posts: 1
Joined: Mon Jul 02, 2012 12:00 am

Teechart commander v2012

Post by ontsnapt » Thu Jul 12, 2012 2:41 pm

The save button of Teechart commander save the settings and the data.

Is it possible to exclude the data and only save the settings?

We would like the user to give the possibility to make changes to the graph, save them and restore it when new data is loaded.

Yeray
Site Admin
Site Admin
Posts: 9613
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Teechart commander v2012

Post by Yeray » Thu Jul 12, 2012 3:31 pm

Hi,

You can't change that button action in the commander but you can manually call the SaveToFile function with the second parameter 'False' to indicate you don't want to export the data. You can see an example of this in the "TeeChart's 'Tee' template and data export/import format" section in the "Tutorial 12 - Exporting and Importing Charts".

Code: Select all

With CommonDialog1
    .Filter = "TeeFile (.tee)|*.tee"
    .ShowSave
    If .FileName <> "" Then
        TChart1.Export.asNative.SaveToFile .FileName, True
    End If
End With
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply