![]() | Steema Issues DatabaseNote: 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. |
| Summary: | Template export sets more than one Axis to Automatic=false | ||
|---|---|---|---|
| Product: | .NET TeeChart | Reporter: | christopher ireland <chris> |
| Component: | Exporting | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | RESOLVED FIXED | ||
| Severity: | minor | ||
| Priority: | --- | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
To reproduce the issue, use the following code: public Form1() { InitializeComponent(); tChart1.Aspect.View3D = true; tChart1.Aspect.Zoom = 80; tChart1.Aspect.Orthogonal = false; tChart1.Aspect.Chart3DPercent = 100; tChart1.Tools.Add(typeof(Rotate)); var surface = new Surface(tChart1.Chart); int count = 20; for (int x = 0; x < count; x++) { for (int z = 0; z < count; z++) { double y = Math.Cos(x) + Math.Sin(z); surface.Add(x, y, z); } } tChart1.Axes.Left.Automatic = false; } private void button1_Click(object sender, EventArgs e) { using (var stream = new MemoryStream()) { tChart1.Export.Template.IncludeData = true; //default setting tChart1.Export.Template.Save(stream); stream.Position = 0; tChart2.Import.Template.Load(stream); tChart2.Axes.Bottom.Automatic = true; tChart2.Axes.Depth.Automatic = true; } } Here we can see that when we set Left.Automatic to false, Bottom.Automatic and Depth.Automatic are also set to false.