View PPTM in C++

Powerful cross-platform C++ API for opening and viewing PPTM using C++ code

View PPTM using Aspose.Slides

Aspose.Slides for C++ is a powerful C++ library used to open and view, manipulate or edit presentations, import presentations from images or documents, and convert presentations to files in other formats.

View PPTM in C++

Using Aspose.Slides for C++ , you can load and view a presentation with a few lines of code.

C++ code for viewing PPTM

// Instantiate a Presentation object that represents a presentation file
auto presentation = System::MakeObject<Presentation>(u"presentation.pptm");

auto controller = System::MakeObject<ResponsiveHtmlController>();
auto htmlOptions = System::MakeObject<HtmlOptions>();
htmlOptions->set_HtmlFormatter(HtmlFormatter::CreateCustomFormatter(controller));

// Saving the presentation to HTML
presentation->Save(u"index.html", SaveFormat::Html, htmlOptions);

How to view PPTM in C++

  1. Install Aspose.Slides for C++. See Installation .

  2. Add the library as a reference in your project.

  3. Instantiate a Presentation object and load the PPTM file.

  4. Create an instance of the ResponsiveHtmlController for formatting.

  5. Create an instance of HtmlOptions and set the HtmlFormatter property.

  6. Save the PPTM presentation as HTML.

  7. Call Process.Start with path to resulting HTML to load PPTM content.