LoadFromFile : ShowInEditor Property not loaded

TeeChart for ActiveX, COM and ASP
Post Reply
guilz2010
Newbie
Newbie
Posts: 63
Joined: Thu Nov 25, 2010 12:00 am
Location: Paris, France

LoadFromFile : ShowInEditor Property not loaded

Post by guilz2010 » Thu Dec 16, 2010 5:14 pm

Hi,

New issue with LoadFromFile/SaveToFile function : when property .ShowInEditor of a serie is set to True at the SaveFromFile phase (for example in MACD function where by default only serie0 and serie1 are displayed in Editor, not serie2 and serie3) this property is not loaded on the LoadFromFile phase for serie2 and serie3.

Could you confirm this issue and add it to our 'to solve wishes list' :D

Thanks

Guilz

Code: Select all

    Private Sub ButtonSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonSave.Click
        AxTChart1.RemoveAllSeries()
        AxTChart1.Aspect.View3D = False

        AxTChart1.Axis.Left.EndPosition = 49
        AxTChart1.AddSeries(TeeChart.ESeriesClass.scCandle)
        AxTChart1.Series(0).FillSampleValues(100)
        AxTChart1.Series(0).Title = "Source Random Serie"

        AxTChart1.Axis.AddCustom(False)
        AxTChart1.Axis.Custom(0).StartPosition = 51
        AxTChart1.Axis.Custom(0).EndPosition = 100
        AxTChart1.AddSeries(TeeChart.ESeriesClass.scLine)
        AxTChart1.Series(1).SetFunction(TeeChart.EFunctionType.tfMACD)
        AxTChart1.Series(1).DataSource = AxTChart1.Series(0)
        AxTChart1.Series(1).FunctionType.Period = 10
        AxTChart1.Series(1).VerticalAxisCustom = 0
        AxTChart1.Series(1).Title = "MACD1"
        AxTChart1.Series(2).VerticalAxisCustom = 0
        AxTChart1.Series(2).Title = "MACD2"
        AxTChart1.Series(2).ShowInEditor = True
        AxTChart1.Series(3).VerticalAxisCustom = 0
        AxTChart1.Series(3).Title = "MACD3"
        AxTChart1.Series(3).ShowInEditor = True
        AxTChart1.Export.asNative.SaveToFile("C:\test1.tee", True)
    End Sub

    Private Sub ButtonLoad_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonLoad.Click
        AxTChart1.Import.LoadFromFile("C:\test1.tee")
    End Sub

    Private Sub ButtonClear_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonClear.Click
        AxTChart1.RemoveAllSeries()
    End Sub

    Private Sub AxTChart1_OnAfterDraw(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AxTChart1.OnAfterDraw

    End Sub

    Private Sub AxTChart1_OnDblClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles AxTChart1.OnDblClick
        AxTeeEditor1.ChartLink = AxTChart1.ChartLink
        AxTeeEditor1.ShowEditor()
    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Debug.Print("Title0:" & AxTChart1.Series(0).Title)
        Debug.Print("Title1:" & AxTChart1.Series(1).Title)
        Debug.Print("Title2:" & AxTChart1.Series(2).Title)
        Debug.Print("Title3:" & AxTChart1.Series(3).Title)
    End Sub

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

Re: LoadFromFile : ShowInEditor Property not loaded

Post by Yeray » Fri Dec 17, 2010 4:46 pm

Hi Guilz,

This will probably for the same reason than this: The internal series aren't exported.
I've added to the wish list the possibility to export also these internal series and their characteristics so they can be loaded later (TV52015326).
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

guilz2010
Newbie
Newbie
Posts: 63
Joined: Thu Nov 25, 2010 12:00 am
Location: Paris, France

Re: LoadFromFile : ShowInEditor Property not loaded

Post by guilz2010 » Mon Dec 20, 2010 7:50 am

Thank you Yeray

Post Reply