Page 1 of 1
Problem with Templates export
Posted: Tue Dec 22, 2009 9:40 am
by 15653431
Hello! When I try to save template without series data, I have a trouble. I use
Code: Select all
chart.Export.Template.IncludeData = false;
property. Sometimes it works properly, but sumetimes series data includes in *.ten file anyway, then template file size reaches several megabytes. Why does it happen?
One more problem with template saving:
Code: Select all
chart.Export.Template.Save("tmpl.ten");
When I have lots of charts and save them one by one, it throws exception. Why?
I use TeeChartNET2009VSNET2005 (v. 0.4455.0.0). TeeChart.dll's version is 4.0.2009.21354
Re: Problem with Templates export
Posted: Tue Dec 22, 2009 9:50 am
by narcis
Hi starnov,
Can you please check if latest TeeChart for .NET 2009 release available at the client download area solves the problems at your end? If it doesn't, could you please attach simple example projects we can run "as-is" to reproduce the problems here?
Thanks in advance.
Re: Problem with Templates export
Posted: Tue Dec 22, 2009 10:36 am
by 15653431
Hi Narcis. I've download last release but it doesn't solve problems. The project is too large. There're lots of "on-line" charts on main form which are refreshed by a timer. There is a SaveScreen method that exports all chart templates:
Code: Select all
private void SaveScreen(string ScreenName)
{
foreach (TChart chart in ChartsPanel.Controls)
{
try
{
chart.Export.Template.IncludeData = false;
chart.Export.Template.Save(chart.Text + ".ten");
}
catch (Exception) { MessageBox.Show("Can't export template '" + chart.Text + "'. Try again"); }
}
}
ChartsPanel is a System.Windows.Forms.Panel object on my form.
Re: Problem with Templates export
Posted: Tue Dec 22, 2009 3:19 pm
by narcis
Hi starnov,
Ok, thanks for the information. Could you please try to arrange a simple example project, with the minimum code required to reproduce the problem, we can run "as-is" to reproduce the issue here?
Thanks in advance.