I am currently evaluating Aspose.Powerpoint and have run into an exception with getThumbnail. Any help or suggestions would be appreciated. (I am using .NET framework 1.1 on XP (SP 2) and Powerpoint 2002.) I have sent an attached one slide powerpoint presentation that generates the error to the listed email.
Note: The code works fine using the demo.ppt provided in the download.
Thank you,
steve
I receive the following error when using Slide.getThumbnail():
[OverflowException: Overflow error.]
System.Drawing.Graphics.CheckErrorStatus(Int32 status) +136
System.Drawing.Graphics.DrawLine(Pen pen, Int32 x1, Int32 y1, Int32 x2, Int32 y2) +131
System.Drawing.Graphics.DrawLine(Pen pen, Point pt1, Point pt2) +21
Aspose.PowerPoint.Line.Draw(Image img, Rectangle group_rect, Rectangle rect) +716
Aspose.PowerPoint.Line.Draw(Image img) +153
Aspose.PowerPoint.Slide.GetThumbnail(Double scaleX, Double scaleY) +353
Aspose.PowerPoint.Slide.GetThumbnail()
Following is the code used:
string fileName = @“C:\documents\presentations\common\Thank_1.ppt”;
System.IO.FileStream fis = new System.IO.FileStream(
fileName,
System.IO.FileMode.Open,
System.IO.FileAccess.Read);
Presentation pres = new Presentation(fis);
fis.Close();
for(int i=0; i<pres.Slides.Count; i++)
{
Slide slide = pres.Slides;
System.Drawing.Image smallImage = slide.GetThumbnail();
}