locked
Generate Powerpoint Presentation from ASP.NET webpage, Insert Slides with Images, Use Common Slide Template, Insert Headings in Slides RRS feed

  • Question

  • User-390872747 posted

    Hi,

    I have developed an ASP.NET Web application using C#. In one of the pages, I am generating powerpoint presentation, inserting slides, pasting images in slides, adding text, using a background template.. all using Microsoft.Office.Interop.PowerPoint.

    I see references on the internet that interop should not be used with web browser. Should I not be using Microsoft.Office.Interop.PowerPoint ? If the answer is yes, can you please point me to a free c# code example, using which i can do these things to generate powerpoint presentation ?

    Thank you

    Sunday, July 7, 2019 3:04 PM

All replies

  • User475983607 posted

    I have developed an ASP.NET Web application using C#. In one of the pages, I am generating powerpoint presentation, inserting slides, pasting images in slides, adding text, using a background template.. all using Microsoft.Office.Interop.PowerPoint.

    I see references on the internet that interop should not be used with web browser. Should I not be using Microsoft.Office.Interop.PowerPoint ? If the answer is yes, can you please point me to a free c# code example, using which i can do these things to generate powerpoint presentation ?

    As explained in your other thread, Office interop is not designed for use on a web server.  The browser is not a factor.

    Anyway, Power Point is available online with an Office 365 subscription.

    https://www.office.com

    Sunday, July 7, 2019 3:22 PM
  • User-390872747 posted

    If the power point is already generated, outside of web server, then linking to it from .aspx web page, will that be a problem, or that should be ok ? Thanks

    Sunday, July 7, 2019 11:24 PM
  • User288213138 posted

    Hi Diana4,

    If the power point is already generated, outside of web server

    According to your description, I couldn’t understand your requirement clearly.

    Is your PPT generated or a PPT file?

    You should know that it is impossible for the web server to access the computer files on the client.

    I suggest you can try OpenXml.

    More information about OpenXml you can refer to this link:https://docs.microsoft.com/en-us/office/open-xml/how-to-create-a-presentation-document-by-providing-a-file-name

    Best regards,

    Sam

    Wednesday, July 10, 2019 6:03 AM
  • User426857743 posted

    You can use free version of spire.presentation nuget package in your web application to generate and manipulate powerpoint presentation. The free version is limited to 10 pages, if your document is over 10 pages, you'll need to upgrade to the pro edition. 

    https://www.nuget.org/packages/FreeSpire.Presentation/

    Thursday, July 25, 2019 9:34 AM