Wrong layout type of slides when loading existing presentation

Hi,

I have a PPT presentation containing 2 slides whose layout are “Title” and “Title and Content”. When I load it into the Presentation object, the layout type of slides is always BlankSlide.
Could you please take a look in this case?

Thanks,
Thuc

Dear Thuc,

How did you create a presentation, I have checked the code below in Aspose.Slides 1.8.4.0 for JAVA on the attached source presentation, it returned the correct layout.

JAVA

Presentation pres = new Presentation(new FileInputStream("d:/downloads/template.ppt"));
int lastSlidePosition = pres.getSlides().getLastSlidePosition();

for (int i = 1; i <= lastSlidePosition; i++) {
    Slide sld = pres.getSlideByPosition(i);
    int slideLayout = sld.getLayout();
    System.out.println(slideLayout);
}

Hi,

I am using Aspose.Slides for NET version 2.8.4.0. And below is the code snippet that I am testing:

string fileName = Application.StartupPath + "\\Test.ppt";

Presentation presentation = new Presentation(fileName);

foreach (Slide s in presentation.Slides)

{

Console.WriteLine(s.Layout.ToString());

}

The output is:

BlankSlide

BlankSlide

BlankSlide

Please provide us your source ppt.

Please see the attached PPT file.

Thank you, we will look into it, can you please tell, how did you generate this file? Did you use MS-PowerPoint (version?) or Aspose.Slides etc?