当前位置: 代码迷 >> ASP.NET >> 怎么在WEB页面上显示WORD,EXECL,PPT的内容
  详细解决方案

怎么在WEB页面上显示WORD,EXECL,PPT的内容

热度:8531   发布时间:2013-02-25 00:00:00.0
如何在WEB页面上显示WORD,EXECL,PPT的内容
在WEB页面上直接点击打开后 Wrod文档中的内容以OFFICES WROD的形式显示在网页中.EXECL 和PPT也是一样的
不要以附件的形式打开。
请各位大侠帮帮我

------解决方案--------------------------------------------------------
设置hyperlink连接word,EXCEL,PP,可直接打开也可
string Pa=page.Server.MapPath(@"../Template_temp/"+File+"");
page.Response.AppendHeader("Content-Disposition","attachment;filename="+File+"");
page.Response.ContentType ="application/ms-excel"; 
page.Response.WriteFile(Pa);
page.Response.End();
------解决方案--------------------------------------------------------
http://jtbin.download.csdn.net/ 
使用 dsoframer 控件 在网页打开word
刚上传,稍后可在我的资源里下载到 这个ocx控件 ,
里面有我的一个使用例子
  相关解决方案