Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 638

Summary: ScrollPager tool inactive after importation
Product: .NET TeeChart Reporter: christopher ireland <chris>
Component: ExportingAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description christopher ireland 2014-03-14 11:38:49 EDT
The following code reproduces the problem:

    private ScrollPager tool1;

    private void InitializeChart()
    {
      tChart1.Aspect.View3D = false;

      series1 = new Steema.TeeChart.Styles.Line(tChart1.Chart);
      series1.FillSampleValues();

      tool1 = new ScrollPager(tChart1.Chart);
      tool1.Series = series1;
    }

    MemoryStream ms = new MemoryStream();
    private void button1_Click(object sender, EventArgs e)
    {
      tChart1.Export.Template.Save(ms);
      ms.Position = 0;
      MessageBox.Show("Saved");

      ms.Position = 0;
      tChart1.Import.Template.Load(ms);

      //((ScrollPager)tChart1.Tools[0]).SubChartTChart.Tools.RemoveAt(0);
      //((ScrollPager)tChart1.Tools[0]).SubChartTool.Charts[0].ITool = ((ScrollPager)tChart1.Tools[0]).SubChartTool;
    }