# 使用 C# 檢視 PPS

> 使用 C# 檢視 PPS 檔案。透過 Aspose.Slides for .NET 開啟簡報檔案並將其儲存為 HTML。

Source: https://products.aspose.com/slides/zh-hant/net/viewer/pps/
Updated: 2026-10-27



## 使用 Aspose.Slides 檢視 PPS

若要檢視 PPS 檔案，請使用 [Aspose.Slides for .NET](https://products.aspose.com/slides/zh-hant/net/)，這是一套功能豐富、強大且易於使用的 C# API。開啟 [NuGet](https://www.nuget.org/packages/aspose.slides.net) 套件管理員，搜尋 **Aspose.Slides** 並安裝。也可以在套件管理器主控台中執行下列命令。

### 套件管理器主控台命令

```cs

PM> Install-Package Aspose.Slides.NET

```

透過 [**Aspose.Slides for .NET**](/slides/zh-hant/net/)，只需幾行程式碼即可載入 PPS 檔案並將其儲存為回應式 HTML。

### 用於檢視 PPS 的 C# 程式碼

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

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

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

## 如何使用 C# 檢視 PPS

透過 Aspose.Slides，開發人員只需幾行程式碼即可檢視 PPS 檔案。

1. 安裝 **Aspose.Slides for .NET**。請參閱[**安裝**](https://docs.aspose.com/slides/net/installation/)。

1. 在專案中加入對該程式庫的參考。

1. 使用 `Presentation` 類別載入 `PPS` 檔案。

1. 建立 `ResponsiveHtmlController` 物件，用於輸出回應式 HTML。

1. 建立 `HtmlOptions` 物件並設定 `HtmlFormatter` 屬性。

1. 使用 `SaveFormat.Html` 將 PPS 檔案儲存為 HTML。

## 系統需求

Aspose.Slides for .NET 支援所有主要作業系統。請確認符合下列先決條件。

- Microsoft Windows 或支援 .NET Framework、.NET Core、Windows Azure、Mono 或 Xamarin 的相容作業系統
- Microsoft Visual Studio 等開發環境
- 在專案中參考 Aspose.Slides for .NET

## 線上檢視 PPS 檔案

免費的 Aspose.Slides Viewer 應用程式以 [Aspose.Slides for .NET](https://products.aspose.com/slides/zh-hant/net/) 建置，與上方程式碼使用的是同一個 API。開啟它，看看 API 能如何處理您自己的 PPS 檔案。

- 在瀏覽器中執行，無需安裝任何軟體。
- 在撰寫程式碼之前，先看看 Aspose.Slides 如何呈現您的檔案。
- 上傳 PPS 檔案並立即檢視其投影片。
- 支援桌面與行動裝置，無需 PowerPoint。

## 什麼是 PPS 文件格式

PPS（PowerPoint 投影片放映）是 PowerPoint 97–2003 使用的二進位投影片放映格式。PPSX 是以 Office Open XML 標準為基礎的較新投影片放映格式。目前版本的 PowerPoint 可以開啟 PPS 檔案，並且仍可將簡報儲存為 PPS 格式。以一般方式開啟時，PPS 檔案會以投影片放映模式啟動，而 PPT 檔案則在編輯模式下開啟。

## 檢視其他檔案

- [ODP](https://products.aspose.com/slides/zh-hant/net/viewer/odp/) — OpenDocument 簡報
- [OTP](https://products.aspose.com/slides/zh-hant/net/viewer/otp/) — OpenDocument 簡報範本
- [POT](https://products.aspose.com/slides/zh-hant/net/viewer/pot/) — PowerPoint 97-2003 範本
- [POTM](https://products.aspose.com/slides/zh-hant/net/viewer/potm/) — 啟用巨集的 PowerPoint 範本
- [POTX](https://products.aspose.com/slides/zh-hant/net/viewer/potx/) — PowerPoint 範本
- [PPSM](https://products.aspose.com/slides/zh-hant/net/viewer/ppsm/) — 啟用巨集的 PowerPoint 播放檔
- [PPSX](https://products.aspose.com/slides/zh-hant/net/viewer/ppsx/) — PowerPoint 播放檔
- [PPT](https://products.aspose.com/slides/zh-hant/net/viewer/ppt/) — PowerPoint 97-2003 簡報
- [PPTM](https://products.aspose.com/slides/zh-hant/net/viewer/pptm/) — 啟用巨集的 PowerPoint 簡報
- [PPTX](https://products.aspose.com/slides/zh-hant/net/viewer/pptx/) — PowerPoint 簡報
