无法调用不过你可以在服务器端 设置Mime头,来骗IE

解决方案 »

  1.   

    test.asp
    -------------
    <%
    response.ContentType="application/notmsword"Const adTypeBinary = 1
    Dim strFilePathstrFilePath = "c:\test.doc"Set objStream = Server.CreateObject("ADODB.Stream")
    objStream.Open
    objStream.Type = adTypeBinary
    objStream.LoadFromFile strFilePathResponse.BinaryWrite objStream.ReadobjStream.Close
    Set objStream = Nothing
    %>
      

  2.   

    问题已解决感谢大家
    结贴<script language="javascript">
    function SaveAs(href,name)
    {
     var a = window.open(href)
     a.document.execCommand('Saveas',true,name)
     a.window.close()
     return false
    }
    </script>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>实验</title>
    </head><body>
    <a href="xxx.doc" onClick="return SaveAs(this.href,'ccc.doc')">文件另存为</a> 
    </body>
    </html>通过连接打开新页,然后另存想要的文件格式.