Problem to display chartSpace

D

DavidE

Hi,

I use chartSpace in an asp file .
I have two machines in the same domaim. Both have windows 2000 server sp3
and office 2003.
One machine display the chart and the other gives error messeges.
The error message:
"Error: Object doesn't support this property or method:
'ChartSpace1.Clear'

The code:
<html>
<body>
<object id=ChartSpace1
classid=CLSID:0002E500-0000-0000-C000-000000000046
style="width:100%;height:450"></object>


<script language=vbscript>
Sub Window_OnLoad()

Dim oChart
Dim oSeries1
dim oConst

'Ensure ChartSpace1 is empty:
ChartSpace1.Clear

Set oConst = ChartSpace1.Constants

'Create a new chart in the ChartSpace
Set oChart = ChartSpace1.Charts.Add

'Add a series of type Column
Set oSeries1 = oChart.SeriesCollection.Add
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top