Page 1 of 1

Saving WPF TChart with special characters.

Posted: Thu Aug 25, 2011 9:50 am
by 15659641
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);
}

Re: Saving WPF TChart with special characters.

Posted: Fri Aug 26, 2011 11:09 am
by 10050769
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,