locked
.aspx to power point RRS feed

  • Question

  • User-1765822410 posted

    i want to convert my entire page(i.e. .aspx) to powerpoint(ppt) on button click. please let me know how i can achieve this in .net using C#. 

    Monday, November 29, 2010 4:40 AM

All replies

  • User-1765822410 posted

    I am using this code now in my button click to export the page content to powerpoint.
            Response.Clear();
            Response.ContentType = "application/vnd.ms-powerpoint";
            StringWriter stringWriter = new StringWriter();       
            HtmlTextWriter htmlTextWriter = new HtmlTextWriter(stringWriter);
            this.RenderControl(htmlTextWriter);
            Response.Write(stringWriter.ToString());
            Response.End();

    it is working fine for Powerpoint 2003 but is is not working in Powerpoint 2010
    any help is appreciated.

    Tuesday, November 30, 2010 12:36 AM