โปรแกรมดูไฟล์ PPSX สำหรับ .NET
ดูไฟล์นำเสนอ เช่น PPSX โดยไม่ต้องใช้ Microsoft PowerPoint หรือ Office Automation
วิธีดูไฟล์ PPSX โดยใช้ C#
ในการดูไฟล์ PPSX เราจะใช้
API ซึ่งเป็น API ที่มีคุณลักษณะหลากหลาย มีประสิทธิภาพ และใช้งานง่ายสำหรับแพลตฟอร์ม C# ที่จะใช้กับโปรแกรมดูใดก็ได้ เปิด
package manager ค้นหา สมมติ.สไลด์ และติดตั้ง คุณยังสามารถใช้คำสั่งต่อไปนี้จาก Package Manager Console
คำสั่งคอนโซลตัวจัดการแพ็คเกจ
PM> Install-Package Aspose.Slides.NET
ขั้นตอนในการดู PPSX ผ่าน C#
Aspose.Slides ช่วยให้นักพัฒนาสามารถดูไฟล์ PPSX ได้ง่ายด้วยโค้ดเพียงไม่กี่บรรทัด
สร้างอินสแตนซ์วัตถุการนำเสนอและโหลดไฟล์ PPSX
สร้างอินสแตนซ์ ResponsiveHtmlController สำหรับการจัดรูปแบบ
สร้างอินสแตนซ์ของ HtmlOptions และตั้งค่าคุณสมบัติ HtmlFormatter
บันทึกงานนำเสนอ PPSX ในรูปแบบ HTML
กระบวนการเรียก เริ่มต้นด้วยเส้นทางไปยัง HTML ที่เป็นผลลัพธ์เพื่อโหลดเนื้อหา PPSX ในเบราว์เซอร์เริ่มต้น
ความต้องการของระบบ
Aspose.Slides สำหรับ .NET รองรับระบบปฏิบัติการหลักทั้งหมด เพียงตรวจสอบให้แน่ใจว่าคุณมีข้อกำหนดเบื้องต้นดังต่อไปนี้
- Microsoft Windows หรือระบบปฏิบัติการที่เข้ากันได้กับ .NET Framework, .NET Core, Windows Azure, Mono หรือ Xamarin Platforms
- สภาพแวดล้อมการพัฒนาเช่น Microsoft Visual Studio
- Aspose.Slides สำหรับ .NET ที่อ้างอิงในโครงการของคุณ
โค้ดตัวอย่าง C# เพื่อดูไฟล์ PPSX
string output = System.IO.Path.GetTempPath() + Guid.NewGuid().ToString() + ".html";
// instantiate a Presentation object & load the PPSX file
using (var presentation = new Aspose.Slides.Presentation("templateppsx"))
{
// 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 หรือ OpenOfficeFree App to View PPSX
Check our live demos to View PPSX with following benefits.
PPSX PPSX รูปแบบไฟล์คืออะไร
PPSX, Power Point Slide Show, file are created using Microsoft PowerPoint 2007 and above for Slide Show purpose. It is an update to the PPS file format that was supported by Microsoft PowerPoint 97-2003 versions. When a PPSX file is shared with another user and opened, it starts as PowerPoint show unlike PPTX file that opens in editable mode. The sequence of slide show is the same as in the original presentation. All the slides accompany the images, sounds and other embedded media accompany the presentation slides to the PPSX during the slideshow.
อ่านเพิ่มเติมรูปแบบตัวแสดงที่รองรับอื่น ๆ
การใช้ C# สามารถดูรูปแบบไฟล์อื่น ๆ ได้มากมายรวมทั้ง