Problem with Templates export

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
starnov
Newbie
Newbie
Posts: 7
Joined: Wed Jun 03, 2009 12:00 am

Problem with Templates export

Post by starnov » Tue Dec 22, 2009 9:40 am

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Problem with Templates export

Post by Narcís » Tue Dec 22, 2009 9:50 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

starnov
Newbie
Newbie
Posts: 7
Joined: Wed Jun 03, 2009 12:00 am

Re: Problem with Templates export

Post by starnov » Tue Dec 22, 2009 10:36 am

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.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Problem with Templates export

Post by Narcís » Tue Dec 22, 2009 3:19 pm

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply