aro*_*ron 1 powerpoint openxml
我正在寻找一些关于如何添加图像和文本并将其作为PowerPoint文件输出的示例代码.主机服务器没有Office,我不允许安装任何东西,因此"使用Open XML Format API操作Excel 2007和PowerPoint 2007文件"对我没有帮助.下面是输出PowerPoint的代码.我只是不知道要添加文字和图片.
Response.ClearContent();
Response.AddHeader("content-disposition", "attachment;filename=Filename.ppt");
Response.ContentType = "application/powerpoint";
System.IO.StringWriter sw = new System.IO.StringWriter();
System.Web.UI.HtmlTextWriter htw = new System.Web.UI.HtmlTextWriter(sw);
Response.Write(sw.ToString());
Response.End();
Run Code Online (Sandbox Code Playgroud)
小智 5
如果你不能使用Open XML Format API,那么糟糕的方法是通过代码创建整个包/ XML/ZIP,我认为这是一个糟糕的解决方案....
好文章如何使用Open Xml API创建ppt http://openxmldeveloper.org/articles/7429.aspx
祝好运
| 归档时间: |
|
| 查看次数: |
7972 次 |
| 最近记录: |