asp.net - 生成动态简报文件 [英] asp.net - Generate Powerpoint file on the fly

查看:153
本文介绍了asp.net - 生成动态简报文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我的基于Web的应用程序的客户谁大量使用数据从我们的系统PowerPoint的presentations。

I have a client of my web based application who heavily uses the data from our system for powerpoint presentations.

目前,我们允许数据在更传统的文件类型... PDF,CSV,HTML输出,以及其他等等。简报似乎没有得到真正的自动化。

We currently allow data to export in more traditional file types...PDF, CSV, HTML, and a few others. Powerpoint doesn't seem to be really automated.

有没有一种方法,在ASP.NET服务器端,自动创建和点播下载PowerPoint文件格式从一个系统的报告?

Is there a way, on the ASP.NET server side, to automate the creation and on-demand download of a powerpoint file format for a report from a system?

推荐答案

这篇文章,史蒂夫建议使用阅读Aspose的幻灯片应用程序。

In this article, Steve suggests using Aspose's Slide application.

他还解释了一步就如何生成的PowerPoint文件一步。

He also explains step by step on how to generate the PowerPoint file.

下面是一些code摘录(在VB中):

Here are some code excerpts (in VB):

打开现有的PowerPoint文件:

 Dim fs As  System.IO.FileStream = _

   New System.IO.FileStream("c:\mypath\myfile.ppt", _

   System.IO.FileMode.Open, System.IO.FileAccess.Read)

Dim MyPres As Presentation = New Presentation(fs)

fs.Close()

循环的幻灯片和输出的模板格式:

Dim slides  As Slides = MyPres.Slides

For i As Integer = 0 To slides.Count - 1

   Response.Write(MyPres.Slides(i).Layout.ToString + "<br>")

Next

在他的文章中,他介绍了更详细的关于如何做到这一点。

In his article, he describes more in detail on how to do it.

这篇关于asp.net - 生成动态简报文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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