Page 1 of 1

Teechart commander v2012

Posted: Thu Jul 12, 2012 2:41 pm
by 16662878
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.

Re: Teechart commander v2012

Posted: Thu Jul 12, 2012 3:31 pm
by yeray
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