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 - ScrollPager tool inactive after importation
Summary: ScrollPager tool inactive after importation
Status: RESOLVED FIXED
Alias: None
Product: .NET TeeChart
Classification: Unclassified
Component: Exporting (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-14 11:38 EDT by christopher ireland
Modified: 2014-03-19 11:04 EDT (History)
0 users

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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;
    }