请帮助从数据库在浏览器中打开ppt文件 [英] pls need help to open ppt file in a browser from database

查看:65
本文介绍了请帮助从数据库在浏览器中打开ppt文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Scenerio:

i正在开发cbt系统。

1)我将ppt文件转换成网页,同时将其保存到我的本地磁盘。

2)相同的pptweb文件我将它作为对象数据类型上传到ms访问数据库。但是总文件将它存储到服务器路径中只有文件名将其存入数据库列。

现在我的问题是..

i想要从数据库中显示网格视图中的所有文件名,点击链接按钮,它应该在新的浏览器中打开特定的pptweb文件...

pls sujjest mwe这是好方法,如果你有任何代码请发送我的邮件ID

psp.1008@gmail.com

提前致谢

解决方案

PPT具有Web未知的专有格式。我建议你在服务器端解析文件,将其映射到一些你需要动态编写的HTML,并在你的HTTP响应中将它呈现给用户。



要使用PPT,您需要使用MS Office Interop: http:/ /msdn.microsoft.com/en-us/library/microsoft.office.interop.powerpoint [ ^ ]。



如果安装了Office,您可以引用适当的程序集服务器端。程序集将安装在GAC中,因此您可以从添加引用窗口的.NET选项卡中引用它。



-SA

Scenerio:
i am developing cbt system.
1)i m converting ppt files into web page while saving it in to my local disk.
2) same pptweb file i am uploading it to m s access database as object data type.but total file is storing it into server path only file name is soting it into database column.
now my problem is..
i want to show all file names in grid view from database and by clicking link button it should open perticular pptweb file in new browser...
pls sujjest mwe which is good way and if you have any code pls send my mail id
psp.1008@gmail.com
Thanks in advance

解决方案

PPT has a proprietary format which is unknown to the Web. I would suggest you parse the file on server side, map it to some HTML which you will need to compose on the fly, and present it to the user in your HTTP response.

To work with PPT, you would need to use MS Office Interop: http://msdn.microsoft.com/en-us/library/microsoft.office.interop.powerpoint[^].

You can reference appropriate assembly if the Office is installed on the server side. The assembly will be installed in the GAC, so you would reference it from the tab ".NET" of the "Add Reference" window.

—SA


这篇关于请帮助从数据库在浏览器中打开ppt文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆