All of the sudden my code which embeds an Office Web Component stopped
working and has only done so on computers that have applied the
critical Windows update
from the week of Jan 15, 2004.
Here is the snippet of code....
<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
With oSeries1
.Caption = "My Percentage"
'.SetData oConst.chDimCategories, oConst.chDataLiteral,
Array(<%=chartaxes%>)
.SetData oConst.chDimValues, oConst.chDataLiteral,
Array(<%=chartvals%>)
.Type = oConst.chChartTypeSmoothLine
End With
Set mg = oChart.Axes(oConst.chAxisPositionLeft).MajorGridlines
mg.Line.Color = "white"
mg.Line.Weight = 1
Set axs = oChart.Axes (1)
axs.Font.Name = "Arial"
axs.Font.Size = "1"
'Add a second value axis to the Chart
'oChart.Axes.Add oChart.Scalings(oConst.chDimValues),
oConst.chAxisPositionRight, oConst.chValueAxis
'Display the legend
'oChart.HasLegend = True
'oChart.Legend.Position = oConst.chLegendPositionBottom
'Display the title for the chart
oChart.HasTitle = True
oChart.Title.Caption = "My Percentage"
End Sub
</script>
The VBScript error that IE is now displaying is:
"Error: Object doesn't support this property or method:
'ChartSpace1.Clear'"
It seems that it is not able to read to OBJECT tag or associate the id
with this object, so any/all properties/methods referencing this
embedded object are failing. I thought that this may be related to
Microsoft patent lawsuit with "eolas" but I cannot find a work around
(or even if this is infact the case). Anyone else experiencing
problems?
http://msdn.microsoft.com/ieupdate/activexchanges.asp
I'm on Win 2K with IE 6.0. Again - comps that didnt get the update
last week are not having the problem. Also, it is not my Internet
Zone security settings - I know that for sure.