Hello folks,
I am evaluating Spire.Doc for the purpose of generating PDF files from Word templates in a Windows Azure environment. I am able to open the doc, manipulate content and save as Word2013 format but cannot save as PDF. The error out is pasted below.
Server Error in '/' Application.
Parameter is not valid.
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: Parameter is not valid.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[ArgumentException: Parameter is not valid.]
System.Drawing.Graphics.GetHdc() +1147361
sprᱥ.ᜀ(PageSetup A_0, ImageType A_1, MemoryStream A_2, Int32 A_3, GraphicsUnit A_4) +171
sprᱥ.ᜀ(PageSetup A_0, ImageType A_1, MemoryStream A_2, Int32 A_3) +19
sprᱥ.ᜒ() +182
sprᱥ.ᜁ(IDocument A_0) +224
sprᧆ.ᜀ(Document A_0) +93
Spire.Doc.Document.ᜂ(String A_0) +94
Spire.Doc.Document.SaveToFile(String fileName, FileFormat fileFormat) +255
LightWingMarketerPortal.Web.ScratchTest.Page_Load(Object sender, EventArgs e) in e:\DEV\LightWing\LightWingMarketerPortal\Production\LightWingMarketerPortal.Web\ScratchTest.aspx.cs:31
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
System.Web.UI.Control.OnLoad(EventArgs e) +92
System.Web.UI.Control.LoadRecursive() +54
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772