Free Support Forum - aspose.com

CloneSlide generates errors

I got this error using CloneSlide of the Presentation object using the latest hotfix.
But I also got it using version 10.5.4.0.
My guess is that there the error appears due to some difference in the color depth of the presentation from which I get the slide and the presentation to which I clone it, but I can’t be sure.
The error consequently occurres with the demoppt2.ppt from aspose when trying to clone the second slide.

Error detail:
{System.ArgumentException}
[System.ArgumentException]: {System.ArgumentException}
HelpLink: Nothing
InnerException: Nothing
Message: “Invalid parameter used.”
Source: “System.Drawing”
StackTrace: " at System.Drawing.Image.FromStream(Stream stream, Boolean useEmbeddedColorManagement)
at System.Drawing.Image.FromStream(Stream stream)
at Aspose.Escher.l…ctor(Stream stream)
at Aspose.PowerPoint.Picture…ctor(Presentation parent, Picture src)
at Aspose.PowerPoint.Presentation.a(Presentation A_0, t A_1)
at Aspose.PowerPoint.Presentation.CloneSlide(Slide srcSlide, Int32 position, Presentation pres)
at Nycomed.DownLoadPPT.CollectSlides() in d:\inetpub\wwwroot\nycomed\Helpers\DownLoadPPT.aspx.vb:line 131"
TargetSite: {System.Reflection.RuntimeMethodInfo}

Dear Mork,

Slide contains DIB image and System.Drawing.Image can’t open it.
Please check 1.5.12 hot fix.

Thank’s.
That did it.