# View PPTM in C#

> View PPTM files in C#. Use Aspose.Slides for .NET to open macro-enabled PowerPoint presentation files and save them as HTML.

Source: https://products.aspose.com/slides/net/viewer/pptm/
Updated: 2026-07-10



## View PPTM in C#

Using [**Aspose.Slides for .NET**](/slides/net/), you can load a PPTM presentation and save it as responsive HTML with a few lines of code.

### C# code for viewing PPTM

```cs
using var presentation = new Presentation("presentation.pptm");

var responsiveHtmlController = new ResponsiveHtmlController();
var htmlOptions = new HtmlOptions
{
    HtmlFormatter = HtmlFormatter.CreateCustomFormatter(responsiveHtmlController)
};

presentation.Save("output.html", SaveFormat.Html, htmlOptions);
```

## View PPTM using Aspose.Slides

[**Aspose.Slides for .NET**](/slides/net/) is a .NET library for opening, viewing, editing, and converting presentation files. You can load PPTM files and save them as HTML for viewing in a browser.

## How to view PPTM in C#

1. Install **Aspose.Slides for .NET**. See [**Installation**](https://docs.aspose.com/slides/net/installation/).

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

1. Load the `PPTM` file with the `Presentation` class.

1. Create a `ResponsiveHtmlController` object for responsive HTML output.

1. Create an `HtmlOptions` object and set the `HtmlFormatter` property.

1. Save the PPTM file as HTML with `SaveFormat.Html`.

## View PPTM Files Online

[Aspose.Slides Viewer](https://products.aspose.app/slides/viewer)

## View other files
