点击按钮获取word路径,在另一页面显示word,怎么实现?

解决方案 »

  1.   

    Response.ContentType = "Application/msword";
                string filepath = Server.MapPath(StrwordUrl);
                Response.WriteFile(filepath);           
                Response.End();     
    这样好像读不出来~  
      

  2.   

    或者使用word 控件,有卖的,
    也可以使用免费的OFramer ,网上搜下载地址
      

  3.   

    如果只是想浏览的话,使用iframe,src指向你的doc文档。或者是先将word转换成html,然后在显示出来。
      

  4.   

    将word转为html我看了,没看懂~
      

  5.   

    word转html,demo
    http://blog.csdn.net/taomanman/article/details/6233930
      

  6.   

    最简单就是用iframe直接指向你的WORD文件地址行了,不过貌似只能IE用
      

  7.   

    最简单就是用iframe直接指向你的WORD文件地址行了,不过貌似只能IE用