Saving WPF TChart with special characters.

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
neurosoft
Newbie
Newbie
Posts: 15
Joined: Fri Jun 17, 2011 12:00 am

Saving WPF TChart with special characters.

Post by neurosoft » Thu Aug 25, 2011 9:50 am

Hello Steema!
We found one more bug for you. Error is in the process of exporting WPF TCHart to XAML.
Special characters in XAML must be replaced by their xml-friendly alternatives: http://msdn.microsoft.com/en-us/library/aa970677.aspx.
But it doesn't occur in exporting TChart. For example try to execute the following simple code and open the result xaml:

Code: Select all

TChart MyTChart = new TChart();
MyTChart.Width = 400;
MyTChart.Height = 300;            
MyTChart.Header.Text = "special chars: <>&";
Microsoft.Win32.SaveFileDialog saveDialog = new Microsoft.Win32.SaveFileDialog();
if (saveDialog.ShowDialog() == true)
{
    MyTChart.Export.Image.XAML.Save(saveDialog.FileName);
}

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Saving WPF TChart with special characters.

Post by Sandra » Fri Aug 26, 2011 11:09 am

Hello neurosoft,

I can reproduce your problem in WPF and WinForms applications. I have added it in bug list report with number [TF02015711]. We will try to fix it for next versions of TeeChart.Net.

Thanks,
Best Regards,
Sandra Pazos / 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