I have this code:
<html>
<script type="text/javascript">
function test() {
var Excel = new ActiveXObject("Excel.Application");
Excel.Workbook.Open("teste.xlsx");
}
</script>
<body>
<form name="form1">
<input type=button onClick="test();" value="Open File">
<br><br>
</form>
</body>
</html>
所以主要问题是我一直收到这个错误提示:
On line 7 , Unable to get value of property Open
URL file:///C:/users/admin/desktop/test.hta
code
Excel.Workbooks.Open("C:\Users\Admin\Desktop\teste.xlsx");code
否则它只会打开一个空白的Excel文件。 - PythonNewbie