javascript操作owc的有关问题

javascript操作owc的有关问题

求助:javascript操作owc的问题
在javascript中操作owc,赋值,展示都没问题,到最后导出为excel文件时,并非按帮助说中的,导出指定文件名的文件。

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>


 <input type="button" value="导出" onclick="exp()">
 <OBJECT classid=clsid:0002E551-0000-0000-C000-000000000046 id=Spreadsheet1 style="width:100%;HEIGHT:95%">
 </OBJECT>
</HTML>

<script>
Spreadsheet1.activesheet.range("a1").value = "水泥产量";
Spreadsheet1.activesheet.range("a2").value = 1;
Spreadsheet1.activesheet.range("b2").value = 2;
Spreadsheet1.activesheet.range("b3").value = 3;

function exp(){
 Spreadsheet1.Export("d:\\a.xls");
}
</script>


附,MSDN的帮助说明:
expression.Export(Filename, Action, Format)
 
expression    An expression that returns a Spreadsheet object.
 
Filename    Optional String. Specifies the file name of the saved file. If you do not specify this argument, a temporary file is created in the user's temporary folder (the location of the temporary folder varies by operating system). You must specify this argument if the Action argument is set to ssExportActionNone.

------最佳解决方案--------------------

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>


     <input type="button" value="导出" onclick="exp()">
     <OBJECT classid=clsid:0002E551-0000-0000-C000-000000000046 id=Spreadsheet1 style="width:100%;HEIGHT:95%">
     </OBJECT>
</HTML>

<script>
    Spreadsheet1.activesheet.range("a1").value = "水泥产量";
    Spreadsheet1.activesheet.range("a2").value = 1;
    Spreadsheet1.activesheet.range("b2").value = 2;
    Spreadsheet1.activesheet.range("b3").value = 3;

    function exp(){
     Spreadsheet1.Export("d:\\a.xls");
     alert('导出完毕');
    }
</script>


Win2003、office2003导出无问题
------其他解决方案--------------------
win7,office2007 环境下,提示内容为:

该程序试图将"/c:/d:/a.xls" 保存到硬盘上。等等。
------其他解决方案--------------------
结果保存不了么?IE的安全级别设低点看看
------其他解决方案--------------------