View ODP in C++

Use Aspose.Slides for C++ to open ODP files and save them as responsive HTML.

View ODP in C++

Use Aspose.Slides for C++ to load an ODP file and export it to responsive HTML with ResponsiveHtmlController, HtmlOptions, HtmlFormatter, and SaveFormat::Html.

C++ code for viewing ODP

auto presentation = MakeObject<Presentation>(u"presentation.odp");

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

presentation->Save(u"index.html", SaveFormat::Html, htmlOptions);
presentation->Dispose();

View ODP using Aspose.Slides

Aspose.Slides for C++ is a presentation processing library for opening, viewing, editing, and converting presentation files. You can load an ODP file with the Presentation class and save it as HTML for browser-based viewing.

How to view ODP in C++

  1. Install Aspose.Slides for C++. See Installation.
  2. Add the library as a reference in your project.
  3. Load the ODP file with the Presentation class.
  4. Create a ResponsiveHtmlController object for responsive HTML formatting.
  5. Create an HtmlOptions object and set the HtmlFormatter property.
  6. Save the ODP presentation as HTML with SaveFormat::Html.
  7. Open the generated HTML file in a browser to view the ODP content.

Built with Aspose.Slides

View ODP Files Online

The free Aspose.Slides Viewer 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 ODP files.

  • Runs in your browser, nothing to install.
  • See how Aspose.Slides renders your files before you write code.
  • Upload your ODP file and view its slides instantly.
  • Works on desktop and mobile, no PowerPoint needed.