Page 1 of 1

How to save the current setting in the registry?

Posted: Thu Mar 02, 2006 5:10 pm
by 9529835
Hi,
is it possibile to save the current setting of ocx directly in the registry with a function?
when i modified the setting with chart editor and close the window I like save the setting in the registry all execpt the data.
I try to use (Export.asNative.SaveToFile "C:\TestFiles\TeeChart.tee", False) but after a close and a open, setting also title and legend :O((.
have try to reset the chart?

thanks in advance.

Posted: Fri Mar 03, 2006 9:02 am
by narcis
Hi Ced,

When exporting a chart, only the properties you set are stored. For example, using this code:

Code: Select all

Private Sub Form_Load()
    TChart1.Series(0).FillSampleValues 10
    TChart1.Legend.Visible = False
    TChart1.Header.Text.Clear
    TChart1.Header.Text.Add "My Title"
End Sub
If you save the chart and then load it title and legend settings are kept. Is that what you are trying to achieve?