We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Index out of bounds

Hi,


I am trying to load a power point presentation from a stream and an IndexOutOfBoundsException is thrown. Below is a sample of the code I am using:

using (var stream = new MemoryStream())
{
webResponse.GetResponseStream().CopyTo(stream);
var presentation = new Presentation(stream);
}

I have also attached the presentation…any thoughts?

Thanks,

Chris

Hi Chris,


I have observe the issue shared and like to share that you need to set the stream position to 0 before loading that stream using Aspose.Slides. Please add the following link before adding stream to Presentation class constructor.

stream.Position=0;

Many Thanks,