Hi
I am graphing using OWC from vbscript. The network where this will be accessed has a mix of XP machines and NT 4.0 machines. I have been developing this charting on my XP machine and it works great. However if i try to access the same page from an NT machine i get the error:
Object doesn't support this property or method 'ChartSpace1.Charts'
Does this have to do with the fact that it's not XP let me konw below is my code:
I am graphing using OWC from vbscript. The network where this will be accessed has a mix of XP machines and NT 4.0 machines. I have been developing this charting on my XP machine and it works great. However if i try to access the same page from an NT machine i get the error:
Object doesn't support this property or method 'ChartSpace1.Charts'
Does this have to do with the fact that it's not XP let me konw below is my code:
Code:
<object id=ChartSpace1 classid=CLSID:0002E500-0000-0000-C000-000000000046 style="width:100%;height:350"></object>
<script language=vbs>
Dim c
Dim val(2)
Dim years(2)
val(0) = 1
val(1) = 2
val(2) = 3
years(0)=1999
years(1)=2000
years(2)=2001
' ChartSpace1.Clear
ChartSpace1.Charts.Add
ChartSpace1.Charts(0).SeriesCollection.Add
Set c = ChartSpace1.Constants
ChartSpace1.Charts(0).SeriesCollection(0).SetData c.chDimCategories, c.chDataLiteral, years
ChartSpace1.Charts(0).SeriesCollection(0).SetData c.chDimValues, c.chDataLiteral, val
ChartSpace1.Charts(0).Type = c.chChartTypeLineMarkers'chChartTypeBarClustered
ChartSpace1.Charts(0).HasLegend = False
ChartSpace1.HasChartSpaceTitle = True
ChartSpace1.Charts(0).Axes(c.chAxisPositionBottom).hastitle=True
ChartSpace1.Charts(0).Axes(c.chAxisPositionBottom).title.caption="Years"
ChartSpace1.Charts(0).Axes(c.chAxisPositionLeft).hastitle=True
ChartSpace1.Charts(0).SeriesCollection(0).DataLabelsCollection.Add
</script>