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

POT File Viewer สำหรับ .NET

ดูไฟล์นำเสนอ เช่น POT โดยไม่ต้องใช้ Microsoft PowerPoint หรือ Office Automation

วิธีดูไฟล์ POT โดยใช้ C#

ในการดูไฟล์ POT เราจะใช้

Aspose.Slides สำหรับ .NET

API ซึ่งเป็น API ที่มีคุณลักษณะหลากหลาย มีประสิทธิภาพ และใช้งานง่ายสำหรับแพลตฟอร์ม C# ที่จะใช้กับโปรแกรมดูใดก็ได้ เปิด

NuGet

package manager ค้นหา สมมติ.สไลด์ และติดตั้ง คุณยังสามารถใช้คำสั่งต่อไปนี้จาก Package Manager Console

คำสั่งคอนโซลตัวจัดการแพ็คเกจ


PM> Install-Package Aspose.Slides.NET

ขั้นตอนในการดู POT ผ่าน C#

Aspose.Slides ช่วยให้นักพัฒนาสามารถดูไฟล์ POT ได้ง่ายด้วยโค้ดเพียงไม่กี่บรรทัด

  1. สร้างอินสแตนซ์วัตถุการนำเสนอและโหลดไฟล์ POT

  2. สร้างอินสแตนซ์ ResponsiveHtmlController สำหรับการจัดรูปแบบ

  3. สร้างอินสแตนซ์ของ HtmlOptions และตั้งค่าคุณสมบัติ HtmlFormatter

  4. บันทึกงานนำเสนอ POT ในรูปแบบ HTML

  5. กระบวนการเรียก เริ่มต้นด้วยเส้นทางไปยัง HTML ที่เป็นผลลัพธ์เพื่อโหลดเนื้อหา POT ในเบราว์เซอร์เริ่มต้น

ความต้องการของระบบ

Aspose.Slides สำหรับ .NET รองรับระบบปฏิบัติการหลักทั้งหมด เพียงตรวจสอบให้แน่ใจว่าคุณมีข้อกำหนดเบื้องต้นดังต่อไปนี้

  • Microsoft Windows หรือระบบปฏิบัติการที่เข้ากันได้กับ .NET Framework, .NET Core, Windows Azure, Mono หรือ Xamarin Platforms
  • สภาพแวดล้อมการพัฒนาเช่น Microsoft Visual Studio
  • Aspose.Slides สำหรับ .NET ที่อ้างอิงในโครงการของคุณ
 

โค้ดตัวอย่าง C# เพื่อดูไฟล์ POT


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

// instantiate a Presentation object & load the POT file
using (var presentation = new Aspose.Slides.Presentation("templatepot"))
{
    // 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 สำหรับ .NET API

    Aspose.Slides API สามารถใช้อ่าน เขียน จัดการ และแปลงเอกสาร Microsoft PowerPoint เป็น PDF, XPS, HTML, TIFF, ODP และรูปแบบอื่นๆ ได้ หนึ่งสามารถสร้างไฟล์ใหม่ตั้งแต่เริ่มต้นและบันทึกในรูปแบบที่รองรับที่เกี่ยวข้อง Aspose.Slides เป็น API แบบสแตนด์อโลนสำหรับการสร้าง แยกวิเคราะห์ หรือจัดการการนำเสนอ สไลด์ และองค์ประกอบ และไม่ขึ้นกับซอฟต์แวร์ใดๆ เช่น Microsoft หรือ OpenOffice

    Free App to View POT

    Check our live demos to View POT with following benefits.

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

    POT POT รูปแบบไฟล์คืออะไร

    Files with .POT extension represent Microsoft PowerPoint template files created by PowerPoint 97-2003 versions. Files created with these versions of Microsoft PowerPoint are in binary format as compared to those created in Office OpenXML file formats using the higher versions of PowerPoint. The files, hence, generated can be used to create presentations that have same layout and other settings required to be applied to new files. These settings can include styles, backgrounds, colour palette, fonts and defaults. Such files are generated in order to create ready-to-use template files for official use.

    อ่านเพิ่มเติม

    รูปแบบตัวแสดงที่รองรับอื่น ๆ

    การใช้ C# สามารถดูรูปแบบไฟล์อื่น ๆ ได้มากมายรวมทั้ง

    ODP (รูปแบบการนำเสนอ OpenDocument)
    OTP (รูปแบบมาตรฐานของ OpenDocument)
    POTM (ไฟล์เทมเพลต Microsoft PowerPoint)
    POTX (การนำเสนอเทมเพลต Microsoft PowerPoint)
    PPS (สไลด์โชว์ PowerPoint)
    PPSM (สไลด์โชว์ที่เปิดใช้งานมาโคร)
    PPSX (สไลด์โชว์ PowerPoint)
    PPT (Microsoft PowerPoint 97-2003)
    PPTM (ไฟล์นำเสนอที่เปิดใช้งานมาโคร)
    PPTX (เปิดรูปแบบการนำเสนอ XML)