Page 1 of 1

PageScroller after open ten file doesn't run

Posted: Fri Mar 14, 2014 9:46 am
by 15654539
I create this chart with pagescroller and it runs well, I save it, but when I open it I cannot scroll the pagescroller. Is any property unabled after open?
http://193.145.251.126/pnp/files/lfdHRM ... gation.ten

Thanks

Re: PageScroller after open ten file doesn't run

Posted: Fri Mar 14, 2014 3:00 pm
by Christopher
Yes, I'm afraid that at the moment you will need a couple of extra lines:

Code: Select all

    private void button1_Click(object sender, EventArgs e)
    {
      tChart1.Import.Template.Load(@"C:\tmp\testnavigation.ten");
      ((ScrollPager)tChart1.Tools[0]).SubChartTChart.Tools.RemoveAt(0);
      ((ScrollPager)tChart1.Tools[0]).SubChartTool.Charts[0].ITool = ((ScrollPager)tChart1.Tools[0]).SubChartTool;
    }
this will be fixed in the next maintenance release.