Spire.Presentation is a professional PowerPoint® compatible library that enables developers to create, read, write, modify, convert and Print PowerPoint documents. Get free and professional technical support for Spire.Presentation for .NET, Java, Android, C++, Python.

Thu Oct 08, 2020 6:26 am

Hi,
We have a requirement to create ppt dynamically from the respnose of API using Dot net core worker service.

We need below features,
1.Dynamically populating data from API
2.creating multiple table in slide
3.creating barchart,line graph, pie chart
4.Attaching another file in PPT
5.Save as PPSx or PPTX

Please let me know if this PPT package support the above requirements

Jayaprakash2107
 
Posts: 1
Joined: Thu Oct 08, 2020 6:10 am

Thu Oct 08, 2020 7:56 am

Hello,

Thanks for your inquiry. Please find the answers below.
1&2&3&5. Our Spire.Presentation support these features, here are some online tutorials for your reference. Besides, you can also download the MSI (Spire.Presentation Pack Version:5.1) on our website and install it to get the demos.
4. Do you mean adding a hyperlink in the PPT to link to another file? Or copy one file to another? Below is the sample code for you reference. If this is not what you want, please provide more details to help us better understand your requirement.
Code: Select all
            //1. Add hyperlink
            Presentation presentation = new Presentation();
            //Load the file from disk
            presentation.LoadFromFile(@"file1.pptx");
            //Get the first shape
            IAutoShape shape = (IAutoShape)presentation.Slides[0].Shapes[0];
            //Add the hyperlink
            shape.TextFrame.TextRange.ClickAction.Address = @"C:\file2.pptx";
            presentation.SaveToFile("result.pptx", FileFormat.Pptx2013);

            //2. Copy PPT
            Presentation destPPT = new Presentation();
            destPPT.LoadFromFile(@"file1.pptx");
            Presentation sourcePPT = new Presentation();
            sourcePPT.LoadFromFile(@"file2.pptx");
            //Clone slide from source ppt to destination ppt
            foreach (ISlide slide in sourcePPT.Slides)
            {
                destPPT.Slides.Insert(destPPT.Slides.Count, slide);
            }
            destPPT.SaveToFile("result.pptx", FileFormat.Pptx2013);


Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Return to Spire.Presentation