Hi,
Hi Shai,
Presentation pres = new
Presentation(path);<o:p></o:p>
FileInfo fi = new FileInfo(path);
switch (fi.Extension.ToLower())
{
case ".pptm":
{
Console.WriteLine("It's a pptm file");
break;
}
case ".pptx":
{
Console.WriteLine("It's a pptx file");
break;
}
}
Hi,
Thank you for your reply.
I need to open a power point file change it and save it.
my problem is that I cann’t rely on the file extension to know file format (the user can give me impersonated file).
So when I save the file :
Doc.Save(FileName, Aspose.Slides.Export.SaveFormat…
I don’t know if to save as pptx or pptm
Hi Shai,
LoadFormat format = PresentationFactory.Instance.GetPresentationInfo(“test.pptm”).LoadFormat;