K
Kai
I wrote a simple code to display excel on web page. It
works fine before on OWC 9.0. But after I installed .NET
2003 and office 2003, it did not work correctly. Even
though I disabled TitleBar and set a couple of cols and
rows on web page. But Finally it will show TitleBar and
all cols(A~CC) and rows(1~3400). Meanwhile I click button,
It will pop up Error: 0object doesn't support this
property or method. Your any suggestion and help are
greatly appreciated.
Below is my simple code.
html>
<head>
<meta http-equiv=Content-Type content="text/html;
charset=windows-1252">
<meta name=ProgId content=FrontPage.Editor.Document>
<meta name=Generator content="Microsoft Excel 9">
</head>
<body>
<script>
function get_a1() {
alert ('the value of cell A1 is: ' + excel.range
('a1').value);
return false;
}
</script>
<object
width = 800
height = 400
id = 'excel'
classid = 'CLSID:0002E510-0000-0000-C000-000000000046'>
<param name=DisplayTitleBar value=false >
<param name=ViewableRange value="$A$1:$D$4">
<param name=DataType value=HTMLData >
</object>
<form>
<input type=submit onclick='return get_a1()' value='Get
A1'>
</form>
</body>
</html>
Kai
works fine before on OWC 9.0. But after I installed .NET
2003 and office 2003, it did not work correctly. Even
though I disabled TitleBar and set a couple of cols and
rows on web page. But Finally it will show TitleBar and
all cols(A~CC) and rows(1~3400). Meanwhile I click button,
It will pop up Error: 0object doesn't support this
property or method. Your any suggestion and help are
greatly appreciated.
Below is my simple code.
html>
<head>
<meta http-equiv=Content-Type content="text/html;
charset=windows-1252">
<meta name=ProgId content=FrontPage.Editor.Document>
<meta name=Generator content="Microsoft Excel 9">
</head>
<body>
<script>
function get_a1() {
alert ('the value of cell A1 is: ' + excel.range
('a1').value);
return false;
}
</script>
<object
width = 800
height = 400
id = 'excel'
classid = 'CLSID:0002E510-0000-0000-C000-000000000046'>
<param name=DisplayTitleBar value=false >
<param name=ViewableRange value="$A$1:$D$4">
<param name=DataType value=HTMLData >
</object>
<form>
<input type=submit onclick='return get_a1()' value='Get
A1'>
</form>
</body>
</html>
Kai