this.parent.mainpage.location.href="test.xls"
试试看

解决方案 »

  1.   

    不会吧?如果客户端安装了excel,那么ie会调用excel插件打开啊……
      

  2.   

    不行呀,还是这们的效果~:)?=? ThisWorkbook??=?x9!?8X@"?1??媅SO1??媅SO1??媅SO1??媅SO1??媅SO+"?"#,##0;"?"\-#,##05"?"#,##0;[Red]"?"\-#,##07"?"#,##0.00;"?"\-#,##0.00A"?"#,##0.00;[Red]"?"\-#,##0.00i*2_ "?"* #,##0_ ;_ "?"* \-#,##0_ ;_ "?"* "-"_ ;_ @_ .))_ * #,##0_ ;_ * \-#,##0_ ;_ * "-"_ ;_ @_ y,:_ "?"* #,##0.00_ ;_ "?"* \-#,##0.00_ ;_ "?"* "-"??_ ;_ @_ 6+1_ * #,##0.00_ ;_ * \-#,##0.00_ ;_ * "-"??_ ;_ @_ \$#,##0_);\(\$#,##0\)\$#,##0_);[Red]\(\$#,##0\) \$#,##0.00_);\(\$#,##0.00\)% \$#,##0.00_);[Red]\(\$#,##0.00\)? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ? ? ? ?,? ?*?
      

  3.   

    再看看http://expert.csdn.net/Expert/topic/2464/2464114.xml?temp=.7747156
    里面有讲下载(打开)文件的
      

  4.   

    声  明    经查,客户端已经装了Excel,版本号2003,所打开的Excel的版本号也为2003                                            特此声明
                                                   2003-12-16                   
      

  5.   

    <html><head>
    <title>New Page 2</title>
    <meta name="GENERATOR" content="Microsoft FrontPage 4.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    </head><frameset rows="64,*">
      <frame name="banner" scrolling="no" noresize target="contents" src="new_page_3.htm">
      <frameset cols="150,*">
        <frame name="contents" target="main" src="new_page_5.htm">
        <frame name="main" src="book1.xls">
      </frameset>
      <noframes>
      <body>  <p>This page uses frames, but your browser doesn't support them.</p>  </body>
      </noframes>
    </frameset></html>
    显示正常啊
      

  6.   

    to: kingdomzhf(旭日东升) 
      谢谢你的回复~:)
      如你所说,在显示时它会弹出一个对话框,点击打开按钮时,才会显示
    我是说如何直接在右边框架中显示,而不显示对话框
      

  7.   

    要不你把EXCEL文件存为WEB方式,连在右面吧。
      

  8.   

    可是excel文件是用户动上传上去的,并且可以更换的