about owc11

W

weiwei

I use owc11 to do my html file,but I got a message in my ie,the object is not
supported property chsp.Constants.any one can tell me how should i do.
the owc11.exe is installed and I use lpktool to make my license.lpk.
my source is that:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title></title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name=ProgId content=VisualStudio.HTML>
<meta name=Originator content="Microsoft Visual Studio .NET 7.1">
</head>
<body>

<object classid="clsid: 0002E55D-0000-0000-C000-000000000046" id="chsp"
width="689" height="652" VIEWASTEXT>
<PARAM NAME="LPKPath" VALUE="license.lpk">
</object>
<script language =vbscript >
Sub window_onload()
Set newChart = chsp.Charts.Add()
newChart.Type = chChartTypeLine
Set c = chsp.Constants
newChart.Type = c.chChartTypeLineMarkers
Set oSer1 = newChart.SeriesCollection.Add 'A "placeholder" series that
contains the full set of possible categories.
oSer1.SetData c.chDimCategories, c.chDataLiteral, Array("a", "b", "c",
"d", "e")

Set oSer2 = newChart.SeriesCollection.Add '"d" is omitted for this series.
oSer2.SetData c.chDimSeriesNames, c.chDataLiteral, "Series #1"
oSer2.SetData c.chDimCategories, c.chDataLiteral, Array("a", "b", "c",
"e")
oSer2.SetData c.chDimValues, c.chDataLiteral, Array(10, 20, 15, 25)

Set oSer3 = newChart.SeriesCollection.Add '"b" is omitted for this series.
oSer3.SetData c.chDimSeriesNames, c.chDataLiteral, "Series #2"
oSer3.SetData c.chDimCategories, c.chDataLiteral, Array("a", "c", "d")
oSer3.SetData c.chDimValues, c.chDataLiteral, Array(5, 4, 9)

end Sub

</script>
</body>
</html>
 

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