HTML JPG PDF XML POTM
Aspose.Slides  for .NET
POTM

.NET用POTMファイルビューア

MicrosoftPowerPointやOfficeAutomationを使用せずにPOTMなどのプレゼンテーションファイルを表示する

C#を使用してPOTMファイルを表示する方法

POTMファイルを表示するには、 [Aspose.Slides for .NET](https://products.aspose.com/slides/ja/net) APIは、機能が豊富で強力で使いやすいC#プラットフォーム用のAPIであり、任意のビューアで使用できます。開ける [NuGet](https://www.nuget.org/packages/aspose.slides.net) パッケージマネージャー、検索 ** Aspose.Slides ** とインストールします。パッケージマネージャーコンソールから次のコマンドを使用することもできます。

パッケージマネージャーコンソールコマンド


PM> Install-Package Aspose.Slides.NET

C#でPOTMを表示する手順

Aspose.Slidesを使用すると、開発者はわずか数行のコードでPOTMファイルを簡単に表示できます。

  1. プレゼンテーションオブジェクトをインスタンス化し、POTMファイルをロードします

  2. フォーマット用のResponsiveHtmlControllerのインスタンスを作成します

  3. HtmlOptionsのインスタンスを作成し、HtmlFormatterプロパティを設定します

  4. POTMプレゼンテーションをHTML形式で保存します

  5. Processを呼び出します。結果のHTMLへのパスから開始して、デフォルトのブラウザにPOTMコンテンツをロードします。

システム要求

Aspose.Slides for .NETは、すべての主要なオペレーティングシステムでサポートされています。次の前提条件があることを確認してください。

-Microsoft Windows、または.NET Framework、.NET Core、Windows Azure、Mono、またはXamarinプラットフォームと互換性のあるOS -MicrosoftVisualStudioのような開発環境 -プロジェクトで参照されているAspose.Slidesfor.NET

 

POTMファイルを表示するためのC#サンプルコード


string output = System.IO.Path.GetTempPath() + Guid.NewGuid().ToString() + ".html";

// instantiate a Presentation object & load the POTM file
using (var presentation = new Aspose.Slides.Presentation("templatepotm"))
{
    // create HTML export controller
    var controller = new Aspose.Slides.Export.ResponsiveHtmlController();
    // create an instance of HtmlOptions and set HtmlFormatter property
    var htmlOptions = new Aspose.Slides.Export.HtmlOptions 
    { 
        HtmlFormatter = Aspose.Slides.Export.HtmlFormatter.CreateCustomFormatter(controller) 
    };

    // save the presentation in HTML
    presentation.Save(output, Aspose.Slides.Export.SaveFormat.Html, htmlOptions);
}
// load HTML to view the presentation content
System.Diagnostics.Process.Start(output);
 
  • Aspose.Slides for.NETAPIについて

    Aspose.Slides APIを使用して、Microsoft PowerPointドキュメントの読み取り、書き込み、操作、およびPDF、XPS、HTML、TIFF、ODP、その他のさまざまな形式への変換を行うことができます。新しいファイルを最初から作成し、サポートされている関連する形式で保存できます。 Aspose.Slidesは、プレゼンテーション、スライド、要素を作成、解析、または操作するためのスタンドアロンAPIであり、MicrosoftやOpenOfficeなどのソフトウェアに依存しません。

    Free App to View POTM

    Check our live demos to View POTM with following benefits.

      No need to download or setup anything
      No need to write or compile code
      Just upload POTM file and hit the "View" button
      Download POTM file from the link, if required

    POTM POTM ファイル形式とは

    Files with POTM extension are Microsoft PowerPoint template files with support for Macros. POTM files are created with PowerPoint 2007 or above and contains default settings that can be used to create further presentation files. These settings can include styles, backgrounds, colour palette, fonts and defaults along with macros that consist of custom functions for doing particular task. They may also be opened by a previous version of PowerPoint with Open XML document support installed. POTM files can be opened in Microsoft PowerPoint for editing like any other PowerPoint file.

    続きを読む

    その他のサポートされているビューア形式

    C#を使用すると、を含む他の多くのファイル形式を表示することもできます。

    ODP (OpenDocumentプレゼンテーション形式)
    OTP (OpenDocument標準フォーマット)
    POT (MicrosoftPowerPointテンプレートファイル)
    POTX (MicrosoftPowerPointテンプレートプレゼンテーション)
    PPS (PowerPointのスライドショー)
    PPSM (マクロ対応のスライドショー)
    PPSX (PowerPointのスライドショー)
    PPT (Microsoft PowerPoint 97-2003)
    PPTM (マクロ対応のプレゼンテーションファイル)
    PPTX (XMLプレゼンテーション形式を開く)