Page 1 of 1

Loading *.tee with ScrollPager not working

Posted: Thu Jul 02, 2015 9:38 am
by 15671530
Hi,

I have a simple application which has one line series and a ScrollPager tool.
snap1.png
snap1.png (42.05 KiB) Viewed 4692 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.

Re: Loading *.tee with ScrollPager not working

Posted: Fri Jul 03, 2015 9:24 am
by Christopher
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);
    }