Free Support Forum - aspose.com

Error in Aspose.Words


#1

we are receiving quite a few errors when attempting to generate a document with Aspose.Words. Have you seen anything like this stack trace? It is common across all of the errors we are seeing, and begins when we call the Save method on the Aspose.Words.Document class from our GenerateImage method:

System.ArgumentException: Parameter is not valid.
at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
at System.Drawing.Graphics.DrawString(String s, Font font, Brush brush, RectangleF layoutRectangle, StringFormat format)
at System.Drawing.Graphics.DrawString(String s, Font font, Brush brush, Single x, Single y)
at .()
at . ​ ( )
at . ​ ( )
at . ​ ( )
at . ​ ( )
at . ​ ( )
at . ​ ( )
at . ​ ( )
at . ​ ( )
at . ​ ( )
at . ​ ( )
at . ​ ( )
at . ​ ( )
at . ​ ( )
at . ​ ( )
at . ​ ( )
at ​ . ​ ( )
at .( , Graphics )
at .( , Size )
at .()
at .(Stream )
at .(Stream )
at . ​ ( )
at . ​ ( )
at Aspose.Words.Document.( , SaveOptions )
at Aspose.Words.Document.(Stream , String , SaveOptions )
at Aspose.Words.Document.Save(Stream stream, SaveOptions saveOptions)
at (Object , Stream , SaveOptions )
at CheckFree.HF.ClubSoftware.CommonUI.DocumentView.GenerateImage(Document doc)


#2

I forgot to mention, we are using Aspose.Word for .Net, version 18.8


#3

@mdgumby

Thanks for your inquiry. Please ZIP and attach the following resources here for testing.

  • Input Word document.
  • Please create a standalone console application ( source code without compilation errors ) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information.

Thanks for your cooperation.