Accesso a OpenDocument Presentation
Contents
[
Hide
]
Aspose.Slides per .NET offre la classe Presentation che rappresenta un file di presentazione. La classe Presentation può ora accedere anche a ODP tramite il costruttore Presentation quando l’oggetto viene istanziato.
Esempio
string FilePath = @"..\..\..\Sample Files\";
string srcFileName = FilePath + "OpenDocument Presentation.odp";
string destFileName = FilePath + "OpenDocument Presentation.pptx";
//Instanzia un oggetto Presentation che rappresenta un file di presentazione
using (Presentation pres = new Presentation(srcFileName))
{
//Salva la presentazione PPTX nel formato PPTX
pres.Save(destFileName, SaveFormat.Pptx);
}