Throws Server Expection when saving to PDF


#1

I tried to save a PowerPoint presentation to a PDF file, but an exception throws.

I am using latest Aspose.Slides, can you give us a solution ASAP.

Error

Invalid parameter used.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: Invalid parameter used.

Source Error:

Line 143:        pres.SaveToPdf("D:\401kExchange\Demo.pdf")
Line 144:        Me.Response.End()
Line 145:

Source File: c:\inetpub\wwwroot\PPTSample\WebForm1.aspx.vb Line: 143

Stack Trace:

[ArgumentException: Invalid parameter used.]
   System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format) +114
   ᑚ.ᑡ.buildBufferedImage(Size& size)
   ᑚ.ᑡ.drawImage(Image img, Int32 x, Int32 y, Int32 width, Int32 height)
   ᑚ.ᑴ.drawImage(Image img, Int32 dx1, Int32 dy1, Int32 dx2, Int32 dy2, Int32 sx1, Int32 sy1, Int32 sx2, Int32 sy2)
   ᑚ.ᣅ.DrawImage(Image image, Rectangle destRect, Single srcX, Single srcY, Single srcWidth, Single srcHeight, GraphicsUnit graphicsUnit, ImageAttributes imageAttributes)
   ᆔ.ᐔ.Render(ᆢ renderer)
   ᆥ.ዂ.Render(ᆢ renderer)
   ᆥ.ዂ.RenderChildren(ᆢ renderer)
   ᆥ.ዂ.Render(ᆢ renderer)
   ᆥ.ዂ.RenderChildren(ᆢ renderer)
   ᆥ.ዂ.Render(ᆢ renderer)
   ᆥ.ᇜ.Render(ᆢ renderer)
   ᆔ.ᆓ.Render(ᇜ node)
   ᆏ.ᆎ.AddPageToPdf(Stream srcStream)
   Aspose.Slides.Presentation.SaveToPdf(Stream stream)
   Aspose.Slides.Presentation.SaveToPdf(String fname)
   PPTSample.WebForm1.Button1_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\PPTSample\WebForm1.aspx.vb:143
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
   System.Web.UI.Page.ProcessRequestMain() +1292


Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032


#2

I have got your presentation.
Unfortunately that is the problem with our PDF creator.
It will be fixed asap.


#3

Hi,

Thanks for immediate response.
Can you tell me on which date can i expect the solution. I have to go live very soon.

Expecting your reply

Thanks


#4

Probably on Monday or Tuesday.