export images to PPT and Every image must be in different slide. is it is possible?

Simran Guriya 0 Reputation points
2023-09-06T08:11:41.3766667+00:00

I want to export images to PPT. I have so many images that I have stored in one folder now I want to export those images to PPT and every image must be on a different slide. but I am not able to do it. If it is possible, could you give me a demo?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,472 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,249 questions
0 comments No comments
{count} votes

6 answers

Sort by: Most helpful
  1. Sreeju Nair 11,856 Reputation points
    2023-09-06T08:53:18.5866667+00:00

    Many third-party tools are available that help you quickly generate PowerPoint from the .net core application. Let me give you a couple of links that may help you.

    1. https://support.syncfusion.com/kb/article/8755/how-to-create-a-powerpoint-file-in-asp-net-core
    2. https://www.youtube.com/watch?v=OSGwosNnN0o
    3. https://www.e-iceblue.com/Introduce/free-presentation-component.html

    I used Syncfusion components in my projects, and they work great.

    Note:- I do not work for Syncfusion Company.


  2. Simran Guriya 0 Reputation points
    2023-09-06T09:46:01.86+00:00

    as per my knowledge, these are paid third-party tools and I don't want any paid library or tool That's why I chose Open XML and want to do it with that Is it possible with it or not?

    0 comments No comments

  3. Sreeju Nair 11,856 Reputation points
    2023-09-06T13:12:28.75+00:00

    Yes ofcourse, you can do these by using OpenXML SDK. Refer the following links to see how you can do this with sample codes.

    https://learn.microsoft.com/en-us/office/open-xml/how-to-create-a-presentation-document-by-providing-a-file-name

    https://learn.microsoft.com/en-us/office/open-xml/presentations

    0 comments No comments

  4. Simran Guriya 0 Reputation points
    2023-09-06T13:21:42.5466667+00:00

    I have go through with this link before

    https://learn.microsoft.com/en-us/office/open-xml/how-to-create-a-presentation-document-by-providing-a-file-name

    by this, I am able to add only one slide. I have some queries with you

    1. if I want to add more slides then what i have to do
    2. The second one is wanting to add images to that presentation so how can I do it. what is the code for that .
    0 comments No comments

  5. Sreeju Nair 11,856 Reputation points
    2023-09-07T05:18:08.52+00:00

    You can insert a new slide to an existing PresentationDocument object easily. Refer the following sample.

    https://learn.microsoft.com/en-us/office/open-xml/how-to-insert-a-new-slide-into-a-presentation

    Hope this helps

    0 comments No comments