Free Support Forum - aspose.com

Problem with images

Work from your example located here:
http://www.aspose.com/documentation/.net-components/aspose.slides-for-.net/adding-picture-frame-to-slide-1.html

I have attached and example (Issue2.aspx) that stops working/hangs on the following line.

slide.Shapes.AddPictureFrame(ShapeTypeEx.Rectangle, pix.X, pix.Y, imgx.Width, imgx.Height, imgx);

Thought on getting this to work?

Hi William,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your interest in Aspose.Slides.

I have made little modification in Issue2.aspx file. Actually the problem you were experiencing was that the FOR loop was not getting terminated and you were perhaps experiencing hanging state. I have resolved the issue and uploaded the modified file with necessary changes. Please follow the comment line, “New Modification from Aspsoe Team” inside attached file to observe the changes made.

We are sorry for the inconvenience.

Thank You.

-W