using TeeChart v7 (7.0.1.4) and C++, I am experiencing a problem with the output text when more than one series are available.
If any of the series have more data points than the first series, the columns in the output text are shifted left, so the data seems mangled.
Here is an example:
Code: Select all
X1 Y1 X2 Y2
1 10 100 1000
2 20 200 2000
3 30 300 3000
400 4000 <-- These value are placed incorrectly
500 5000
My code for extracting the text goes basically like this:
Code: Select all
CTextExport tex = m_CTChart.GetExport().GetAsText();
tex.SetIncludeHeader( TRUE );
tex.SetIncludeLabels( TRUE ); // Include labels in the export text.
tex.SetTextDelimiter( ";" );
// Get data as text from the TChart.
CString strTxt = tex.AsString();