Truy cập Trình chiếu OpenDocument

Aspose.Slides for .NET cung cấp lớp Presentation đại diện cho một tệp trình chiếu. Lớp Presentation hiện cũng có thể truy cập ODP thông qua hàm tạo Presentation khi đối tượng được khởi tạo.

Ví dụ


 string FilePath = @"..\..\..\Sample Files\";

string srcFileName = FilePath + "OpenDocument Presentation.odp";

string destFileName = FilePath + "OpenDocument Presentation.pptx";

//Tạo một đối tượng Presentation đại diện cho một tệp trình chiếu

using (Presentation pres = new Presentation(srcFileName))

{

    //Lưu trình chiếu PPTX ở định dạng PPTX

    pres.Save(destFileName, SaveFormat.Pptx);

}

Tải mã mẫu

Tải ví dụ chạy