IncludeData in TemplateExport not working in .net 6.0

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
akshobrao
Newbie
Newbie
Posts: 12
Joined: Fri Aug 25, 2023 12:00 am

IncludeData in TemplateExport not working in .net 6.0

Post by akshobrao » Wed Apr 03, 2024 5:16 pm

Visual Studio 2022
Target framework .NET 6.0
Steema.TeeChart.net Version 4.2024.3.15

When exporting a template with the flag IncludeData set to false the data seems to be included. I tried it on .net framework and it seems to work correctly there. Here is the code.

Code: Select all

	public partial class Form1 : Form
	{
		Steema.TeeChart.TChart tChart1;
		public Form1()
		{
            InitializeComponent();
            tChart1 = new Steema.TeeChart.TChart();
            this.Controls.Add(tChart1);
            tChart1.Dock = DockStyle.Fill;
            tChart1.Axes.Bottom.Visible = true;
            tChart1.Axes.Left.Visible = true;
            tChart1.Axes.Right.Visible = false;
            tChart1.Legend.Visible = false;

            LoadData();
            TemplateExport template = tChart1.Export.Template;
            template.IncludeData = false;
            tChart1.Export.Template.Save("template.json");


        //    tChart1.Import.Template.Load("template.json");
        }

		private void LoadData()
		{
            tChart1.Legend.Alignment = Steema.TeeChart.LegendAlignments.Bottom;
            Series line = new Line();
            line.Marks.FollowSeriesColor = true;
            tChart1.Chart.Series.Add(line);

            for (int i = 0; i < 1000; i++)
            {
                line.Add(i, i);
            }
		}
	}
Thanks,
Akshob
Attachments
IncludeData.png
IncludeData.png (29.58 KiB) Viewed 13814 times

Edu
Newbie
Newbie
Posts: 39
Joined: Tue Nov 28, 2023 12:00 am

Re: IncludeData in TemplateExport not working in .net 6.0

Post by Edu » Thu Apr 04, 2024 11:33 am

Thank you for reporting this bug. We have seen the issue and are working to resolve it.
Sorry for the inconvenience.
Edu
Steema Support

Marc
Site Admin
Site Admin
Posts: 1272
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: IncludeData in TemplateExport not working in .net 6.0

Post by Marc » Mon Apr 15, 2024 12:19 pm

Hello,

Please note; this issue has been resolved for the latest available TeeChart update.

Regards,
Marc Meumann
Steema Support

Post Reply