社区
C#
帖子详情
.net如何实现word、pdf、PPT等文件的在线阅读?
fthislife
2013-10-28 10:01:34
如题,可以允许用户在线查看等,但不允许用户下载,即不能使用本地的pdf\word等软件打开也能查看,因为这样的话别人可以另存为。。,请问有什么控件能实现的?
...全文
112
2
打赏
收藏
.net如何实现word、pdf、PPT等文件的在线阅读?
如题,可以允许用户在线查看等,但不允许用户下载,即不能使用本地的pdf\word等软件打开也能查看,因为这样的话别人可以另存为。。,请问有什么控件能实现的?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
2 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
把最好的留到最后
2013-10-28
打赏
举报
回复
以前看过的源码,再好的控件不如自己写。
类似百度文库在线预览文档flash版
马老虎
2013-10-28
打赏
举报
回复
一般都是采用 flash 进行查看的。
asp
.net
实现
在线
查看(预览)
pdf
,
ppt
,
word
,excel
文件
.rar
【核心代码】 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 using Aspose.Cells; using Aspose.Slides.
Ppt
x; using System; using System.Collections.Generic; using System.Data; using System.IO; using System.Linq; using System
.Net
; using System
.Net
.Http; using System.Text; using System.Web.Http; namespace DocOnlineView.UI.Controllers.MVCAPI { public class HomeController : ApiController { [HttpGet] public DataTable CourseViewOnLine(string fileName) { DataTable dtlist = new DataTable(); dtlist.Columns.Add("TempDocHtml", typeof(string)); string fileDire = "/Files"; string sourceDoc = Path.Combine(fileDire, fileName); string saveDoc = ""; string docExtendName = System.IO.Path.GetExtension(sourceDoc).ToLower(); bool result = false; if (docExtendName == ".
pdf
") { //
pdf
模板
文件
string tempFile = Path.Combine(fileDire, "temp
pdf
.html"); saveDoc = Path.Combine(fileDire, "viewFiles/online
pdf
.html"); result =
Pdf
ToHtml( sourceDoc, System.Web.HttpContext.Current.Server.MapPath(tempFile), System.Web.HttpContext.Current.Server.MapPath(saveDoc)); } else { saveDoc = Path.Combine(fileDire, "viewFiles/onlineview.html"); result = OfficeDocumentToHtml( System.Web.HttpContext.Current.Server.MapPath(sourceDoc), System.Web.HttpContext.Current.Server.MapPath(saveDoc)); }
Asp
.net
MVC
实现
在线
预览
word
、excel、
ppt
、
pdf
文件
Asp
.net
MVC 利用(aspose+
pdf
object.js)
实现
在线
预览
word
、excel、
ppt
、
pdf
文件
在线
预览常用办公文档(
word
、excel、
ppt
、
pdf
)
Asp
.net
MVC 利用(aspose+
pdf
object.js)
实现
在线
预览
word
、excel、
ppt
、
pdf
文件
在线
预览常用办公文档(
word
、excel、
ppt
、
pdf
)
ASP
.Net
使用Flexpaper
实现
word
、
ppt
、excel、
pdf
、图片
在线
预览
ASP
.Net
使用Flexpaper
实现
word
、
ppt
、excel、
pdf
、图片
在线
预览
基于asp
.net
的
实现
在线
查看(预览)
pdf
,
ppt
,
word
,excel
文件
系统源码.zip
基于asp
.net
实现
的
实现
在线
查看(预览)
pdf
,
ppt
,
word
,excel
文件
源码,使用vs进行开发, 源码运行后,选择相应的
文件
类型和
文件
路径即可查看,非常好用,本资源可供参考学习或者二次开发使用。
C#
110,539
社区成员
642,577
社区内容
发帖
与我相关
我的任务
C#
.NET技术 C#
复制链接
扫一扫
分享
社区描述
.NET技术 C#
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧
+ 用AI写文章