Edit PPT in C++
Use Aspose.Slides for C++ to edit PPT presentations in C++ applications.
Edit PPT in C++
Using
Aspose.Slides for C++
, you can edit a PPT presentation by loading it with the Presentation class, adding a text shape, and saving the result with SaveFormat::Ppt.
C++ code for editing PPT
auto presentation = MakeObject<Presentation>(u"presentation.ppt");
auto slide = presentation->get_Slide(0);
auto textBox = slide->get_Shapes()->AddAutoShape(ShapeType::Rectangle, 10, 10, 100, 50);
textBox->get_TextFrame()->set_Text(u"New text");
presentation->Save(u"presentation.ppt", SaveFormat::Ppt);
presentation->Dispose();Edit PPT using Aspose.Slides
Aspose.Slides for C++
is a C++ API for working with PowerPoint presentations. You can load a PPT file into a Presentation, add text to a slide, and save the result as PPT.
How to edit PPT in C++
- Install Aspose.Slides for C++. See Installation.
- Add the library as a reference in your project.
- Load the
PPTpresentation with thePresentationclass. - Access the slide you want to edit.
- Add a text shape with
AddAutoShapeandset_Text. - Save the edited presentation with
SaveFormat::Ppt.
Built with Aspose.Slides
Edit PPTX Files Online
The free Aspose.Slides Editor app is built with Aspose.Slides for C++, the same API as the code above. Open it and see what the API can do with your own PPTX files.
- Runs in your browser, nothing to install.
- See how Aspose.Slides handles your files before you write code.
- Upload your PPTX files and edit them instantly.
- Save and download the edited file.
Edit other files
You can also edit files in other formats.