Free Support Forum - aspose.com

Slides from a PPT file

Hello, I am trying to convert a slide to an image in a ‘PPT’ file, I have the following code

Dim asposePPTPresentation As Aspose.Slides.Presentation = New Aspose.Slides.Presentation
Dim slide As Aspose.Slides.Slide = asposePPTPresentation.GetSlideByPosition(1)
slide.GetThumbnail(New Size(290, 230)).Save(“SaveLocation”, ImageFormat.Jpeg)

However, the image always turns out blank when I do this. Can anyone tell me why that is? I do have a separate piece of code that works fine for ‘.pptx’ files but gives errors on ‘.ppt’ files:


Dim asposePPTPresentation As Aspose.Slides.Pptx.PresentationEx = New Aspose.Slides.Pptx.PresentationEx(myReader)
Dim slide As Aspose.Slides.Pptx.SlideEx = asposePPTPresentation.Slides(0)
Return slide.GetThumbnail(New Size(290, 230))

Hi,

I have observed the code snippet shared by you and have not been able to able to observe the issue in sample code. Can you please share the sample presentation along with generated output with us so that I may investigate the issue further on my end?

Many Thanks,

Hello,

Thank you for looking at my issue, I was about to attach the files when I discovered the bug in my code.

Hi,


You are always welcome. Please share, if I may help you further in this regard.

Many Thanks,