ppt在网页中幻灯片 [英] ppt slides in webpage

查看:101
本文介绍了ppt在网页中幻灯片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在ppt中有笔记,我想在我的.aspx页面中将其显示为ppt幻灯片放映



我该怎么做?

with asp c#code。

解决方案

你需要用HTML表示PPT节目。 PPT是一种非标准化的Web专有格式。



但是,如果您的服务器端操作系统是Windows(ASP.NET并不总是这样,但是几乎总是如此),您可以在服务器端使用PPT文件并动态生成HTML。由于PPT和HTML概念不同,并且没有预定义的一对一对应关系,因此您应该为您的节目生成算法提供一些映射规则。



总的来说,可能是相当大的工作。你做得好,你可以实现非常接近PPT原创甚至更好的幻灯片放映。我看到很多网站用真实的PPT文件做这件事并给出了非常流畅的演示文稿(对不起,我没有任何链接向你展示;有些网站只有公司访问权限。)



要阅读PPT,您可以使用 Microsoft.Office.Interop.PowerPoint 。当您安装Office时,互操作程序集将安装在您的GAC中,因此您使用Visual Studio添加引用窗口的.NET选项卡添加引用。



当然,如果您使用Office Interop,则需要在服务器主机上安装匹配的Office版本。



-SA

i have notes in ppt and i want to show it as ppt slide show in my .aspx page

how can i make this ?
with asp c# code.

解决方案

You need to represent PPT show in HTML. PPT is a proprietary format not standardized for the Web.

However, if your server-side OS is Windows (which is not always the case with ASP.NET, but almost always), you can use PPT files on the server side and generate HTML on the fly. As PPT and HTML concepts are different, and there is no predefined one-to-one correspondence, you should provide some mapping rules to your algorithm of the generation of this show.

Overall, is can be pretty big work. It you do it well, you can achieve the slide show very close to PPT original or even better. I saw a number of sites doing it with real PPT files and giving quite smooth presentations (sorry, I don''t have any links to show you; and some sites were corporate-access only).

To read PPT, you can use Microsoft.Office.Interop.PowerPoint. When you install Office, the interop assembly will be installed in your GAC, so you add the reference using the tab ".NET" of Visual Studio "Add Reference" window.

Of course, if you use Office Interop, you will need the installation of matching Office version on the server host.

—SA


这篇关于ppt在网页中幻灯片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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