Edit PPT in C++
Use Aspose.Slides for C++ to edit PPT presentations in C++ applications.
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.
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();
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.