我正在尋找一些關於如何添加圖像和文本的示例代碼&將其輸出爲PowerPoint文件。 主機服務器沒有Office,我不允許安裝任何東西,因此「使用Open XML Format API處理Excel 2007和PowerPoint 2007文件」不會幫助我。 以下是輸出PowerPoint的代碼。我只是不知道要添加文字和圖片。創建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();
阿隆創建PPT,我只想澄清,你需要添加圖像/文本*從*服務器,也可以做客戶端,並添加編輯的文件返回到服務器? –