Loading *.tee with ScrollPager not working

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
DaVinci
Newbie
Newbie
Posts: 9
Joined: Wed Feb 18, 2015 12:00 am

Loading *.tee with ScrollPager not working

Post by DaVinci » Thu Jul 02, 2015 9:38 am

Hi,

I have a simple application which has one line series and a ScrollPager tool.
snap1.png
snap1.png (42.05 KiB) Viewed 4657 times
I can fill my line series with data and afterwards, save my chart to a file (without data).
I restart my application and press the load button to prepare my chart with the file I saved before.
When I add data to the chart (using the Data button), no data points are drawn. If I look with the Editor, I can see that the ScrollPager tool still uses my line series.
What's wrong or missing?

I added my application as attachment.

DaVinci.
Attachments
ScrollPagerSaveLoad.zip
(16.76 KiB) Downloaded 612 times

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Loading *.tee with ScrollPager not working

Post by Christopher » Fri Jul 03, 2015 9:24 am

DaVinci,
DaVinci wrote:I added my application as attachment.
Thank you.

The reason the data is not being drawn is because you have set "IncludeData" to false. If you set it to true, which is default, all should work as expected, e.g.

Code: Select all

    private void loadButton_Click(object sender, EventArgs e)
    {
      tChart1.Import.Template.Load(filename);
    }

    private void saveButton_Click(object sender, EventArgs e)
    {
      tChart1.Export.Template.IncludeData = true;
      tChart1.Export.Template.Save(filename);
    }
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Post Reply