Totally beaten by SeriesXMLSource
Posted: Wed May 31, 2006 8:55 am
Hi, there,
Here is part of the code in the Tutorial 15 - MS VC++ Applications:
m_SeriesXMLSource1.SetFileName("http://www.steema.com/SampleData.xml");
m_SeriesXMLSource1.SetSeries(SourceSeries);
m_SeriesXMLSource1.SetSeriesNode("USA");
m_SeriesXMLSource1.SetValueSource("Bar");
m_SeriesXMLSource1.Open();
It can works. But when I changed it to
m_SeriesXMLSource1.SetFileName("http://www.steema.com/SampleData.xml");
m_SeriesXMLSource1.SetSeries(SourceSeries);
m_SeriesXMLSource1.SetSeriesNode("Revenue");
m_SeriesXMLSource1.SetValueSource("Line");
m_SeriesXMLSource1.Open();
(<series title="Revenue" type="Line" color="#FF0000"> as in the http://www.steema.com/SampleData.xml)
It won't work. Why? And that's the only VC++ code on SeriesXMLSource I could find. I tried so many times trying to use the VC code in the tutorial with my own xml files but I just could make it.
Would anyone please give me an example of how to import a xml file that has several series data and display in one chart? Is it possible to import several different xml files each of which has only one series, then display in one chart?
VC++ code please!!
Thank you very much!
David
Here is part of the code in the Tutorial 15 - MS VC++ Applications:
m_SeriesXMLSource1.SetFileName("http://www.steema.com/SampleData.xml");
m_SeriesXMLSource1.SetSeries(SourceSeries);
m_SeriesXMLSource1.SetSeriesNode("USA");
m_SeriesXMLSource1.SetValueSource("Bar");
m_SeriesXMLSource1.Open();
It can works. But when I changed it to
m_SeriesXMLSource1.SetFileName("http://www.steema.com/SampleData.xml");
m_SeriesXMLSource1.SetSeries(SourceSeries);
m_SeriesXMLSource1.SetSeriesNode("Revenue");
m_SeriesXMLSource1.SetValueSource("Line");
m_SeriesXMLSource1.Open();
(<series title="Revenue" type="Line" color="#FF0000"> as in the http://www.steema.com/SampleData.xml)
It won't work. Why? And that's the only VC++ code on SeriesXMLSource I could find. I tried so many times trying to use the VC code in the tutorial with my own xml files but I just could make it.
Would anyone please give me an example of how to import a xml file that has several series data and display in one chart? Is it possible to import several different xml files each of which has only one series, then display in one chart?
VC++ code please!!
Thank you very much!
David