I’m trying to create thumbnails from the attached PPT file using the code below. This causes a NullReferenceException on page 12. I can create thumbnails for all others pages.
var presentation = new Presentation(sourceFile);
int slideWidth = presentation.SlideSize.Width;
int slideHeight = presentation.SlideSize.Height;
for (int j = 1; j <= presentation.Slides.Count; j++)
Slide slide = presentation.GetSlideByPosition(j);
var image = slide.GetThumbnail(new Size(slideWidth, slideHeight));
Can you tell me what is wrong with this page?
We are sorry for your inconvenience,