Headings/Labels in Export
Posted: Mon Jul 05, 2004 2:37 pm
I'm using the following to export to a csv file:
m_Chart.Export().Data.Text.TextDelimiter = ", "
m_Chart.Export().Data.Text.TextLineSeparator = vbCrLf
m_Chart.Export().Data.Text.IncludeHeader = True
m_Chart.Export().Data.Text.IncludeLabels = True
Dim ms As IO.MemoryStream = New IO.MemoryStream
m_Chart.Export().Data.Text.Series = m_Chart.Series(0)
m_Chart.Export().Data.Text.Save(ms)
And my output is like follows:
Text, Bar1
15, 100
16, 0
17, 0
18, 0
19, 0
20, 0
21, 0
22, 0
My problem is, I want my x and y axes labels to replace the "Text, Bar1" line. In my code above, it looks like IncludeLabels is not doing anything (if I remove, I get the same output). What properties in the series or bar to I have to set in order to have the labels that are displayed on the axes of the graph in the export. I know I could change the name of Bar1 to whatever my y-axis label is, but I have no idea where the "Text" is coming from?
Thanks for any help.
m_Chart.Export().Data.Text.TextDelimiter = ", "
m_Chart.Export().Data.Text.TextLineSeparator = vbCrLf
m_Chart.Export().Data.Text.IncludeHeader = True
m_Chart.Export().Data.Text.IncludeLabels = True
Dim ms As IO.MemoryStream = New IO.MemoryStream
m_Chart.Export().Data.Text.Series = m_Chart.Series(0)
m_Chart.Export().Data.Text.Save(ms)
And my output is like follows:
Text, Bar1
15, 100
16, 0
17, 0
18, 0
19, 0
20, 0
21, 0
22, 0
My problem is, I want my x and y axes labels to replace the "Text, Bar1" line. In my code above, it looks like IncludeLabels is not doing anything (if I remove, I get the same output). What properties in the series or bar to I have to set in order to have the labels that are displayed on the axes of the graph in the export. I know I could change the name of Bar1 to whatever my y-axis label is, but I have no idea where the "Text" is coming from?
Thanks for any help.