是否有可能用新数据更新PowerPoint幻灯片(在C#)? [英] Is it possible to update a PowerPoint slide with new data (in C#)?

查看:102
本文介绍了是否有可能用新数据更新PowerPoint幻灯片(在C#)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何的例子在那里如何更新PowerPoint幻灯片(在一定的文本清除文本,然后用新的内容更新它)?

Are there any examples out there on how to update a PowerPoint slide (by clearing the text in a certain textbox and updating it with new content)?

我有月度报告来生成PowerPoint和我在一个数据库中的所有数据。我想确定我是否可以简单地通过与三个文本框空白的PowerPoint模板自动生成幻灯片和数据会从我的C#代码填写。

I have a monthly report to generate in PowerPoint and I have all the data in a database. I am trying to determine if I can simply autogenerate the slides by having a blank PowerPoint template with three textboxes and the data would get filled in from my C# code.

其他例如,我会去找有:

The other examples i would look for are:


  • 采用项目符号列表


在正确的方向任何帮助,将不胜感激。我看到SOF是类似的,但似乎没有回答这个问题的几个问题。

Any help in the right direction would be appreciated. I see a few questions on SOF that are similar but none seems to answer this question.

我认为最简单的是使用的OpenXML格式文件(.pptx)正如我正在运行的可能没有PowerPoint中的机器上的Web服务器上。

I assume the easiest would be to use the OpenXML format (.pptx) as i am running on a web server that may not have PowerPoint on the machine.

推荐答案

是啊,这是可能的,的这里是如何在网上做一个教程。他们也有在该博客这应有助于该项目的示例代码。

Yeah this is possible and here is a tutorial on how to do it online. They also have the sample code for the project in that blog which should help.

这篇关于是否有可能用新数据更新PowerPoint幻灯片(在C#)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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