Exception with loading template files
Posted: Fri Mar 16, 2007 2:55 pm
Version
1.1.2531.28391
Steps to create exception: -
1/ Create a chart.
2/ Add a Bar Series.
3/ Add random data.
4/ Add a "Mark Tips" Tool from the TeeChart Editor Tools Section.
5/ Verify the tooltips are showing.
6/ Open TeeChart Editor, select the added Mark Tips tool and uncheck the Active checkbox and press Close.
7/ Now execute the following: -
this.tChart1.Export.Template.Save("test.ten");
this.tChart1.Import.Template.Load("test.ten");
You will find that when Loading the template file, you will get an exception.
System Exception : - "Exception has been thrown by the target of an invocation."
Inner Exception : -"Object Reference not set to an instance of an object"
Please bear in mind, that I can follow the same process above and use the "Draw Line" tool and it works fine.
Therefore I conclude, that when using the "Mark Tips" tool, the template file is incorrect after making the tool inactive.
1.1.2531.28391
Steps to create exception: -
1/ Create a chart.
2/ Add a Bar Series.
3/ Add random data.
4/ Add a "Mark Tips" Tool from the TeeChart Editor Tools Section.
5/ Verify the tooltips are showing.
6/ Open TeeChart Editor, select the added Mark Tips tool and uncheck the Active checkbox and press Close.
7/ Now execute the following: -
this.tChart1.Export.Template.Save("test.ten");
this.tChart1.Import.Template.Load("test.ten");
You will find that when Loading the template file, you will get an exception.
System Exception : - "Exception has been thrown by the target of an invocation."
Inner Exception : -"Object Reference not set to an instance of an object"
Please bear in mind, that I can follow the same process above and use the "Draw Line" tool and it works fine.
Therefore I conclude, that when using the "Mark Tips" tool, the template file is incorrect after making the tool inactive.