Can i generate a power point document from a aspx page using Aspose Slides?



Hi,


I have a asp.net report, i need a export to power point button on the report. I want to convert the html of the report to a power point document that user can download.

I am able to generate word documents using the below asp.net code but it ppt files are not generated properly using it. I want to know if Aspose Slides for .NET can help me with this.

Regards,
Zohaib


HttpContext.Current.Response.Clear();
HttpContext.Current.Response.Charset = “”;

HttpContext.Current.Response.ContentType = “application/msword”;
string strFileName = “Multiple Heat Map” + “.doc”;


HttpContext.Current.Response.AddHeader(“Content-Disposition”, “inline;filename=” + strFileName);

StringBuilder strHTMLContent = new StringBuilder();

System.IO.StringWriter tw = new System.IO.StringWriter();
System.Web.UI.HtmlTextWriter hw = new HtmlTextWriter(tw);
Page.RenderControl(hw);


strHTMLContent.Append(tw.ToString());

HttpContext.Current.Response.Write(strHTMLContent);

HttpContext.Current.Response.End();
HttpContext.Current.Response.Flush();

Hi,

Aspose.Slides can be used for creating/manipulating MS-PowerPoint documents, but it does not export/import presentation to/from HTML. You will have to write the HTML to PPT or vice versa functionality yourself.