View ODP in C#
C# API for opening ODP files and saving them as responsive HTML.
View ODP in C#
Using Aspose.Slides for .NET , you can load an ODP presentation and save it as responsive HTML with a few lines of code.
C# code for viewing ODP
using var presentation = new Presentation("presentation.odp");
var responsiveHtmlController = new ResponsiveHtmlController();
var htmlOptions = new HtmlOptions
{
HtmlFormatter = HtmlFormatter.CreateCustomFormatter(responsiveHtmlController)
};
presentation.Save("output.html", SaveFormat.Html, htmlOptions);View ODP using Aspose.Slides
Aspose.Slides for .NET is a .NET library for opening, viewing, editing, and converting presentation files. You can load ODP files and save them as HTML for viewing in a browser.
How to view ODP in C#
- Install Aspose.Slides for .NET. See Installation.
- Add the library as a reference in your project.
- Load the
ODPfile with thePresentationclass. - Create a
ResponsiveHtmlControllerobject for responsive HTML output. - Create an
HtmlOptionsobject and set theHtmlFormatterproperty. - Save the ODP file as HTML with
SaveFormat.Html.
Built with Aspose.Slides
View ODP Files Online
The free Aspose.Slides Viewer app is built with Aspose.Slides for .NET, 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.
View other files
You can also open and view presentations in other formats.