Parameter is not valid with Aspose 9.7.0.0

Hi.

I am trying to convert the attached document using the code below. I get a Parameter is not valid exception when doing so.

Would it be possible to get this fixed?

Thanks.

Here is the Code I am using.

using (MemoryStream ms = new MemoryStream(byaData))
{
    Aspose.Words.Document doc = new Aspose.Words.Document(ms);
    // doc.Range.Replace(Aspose.Words.ControlChar.Cr + Aspose.Words.ControlChar.Lf, string.Empty, false, false);
    Aspose.Words.Saving.HtmlSaveOptions saveOptions = new Aspose.Words.Saving.HtmlSaveOptions(SaveFormat.Html);
    saveOptions.ExportDocumentProperties = false;
    saveOptions.ExportPageSetup = false;
    saveOptions.ExportXhtmlTransitional = false;
    saveOptions.PrettyFormat = false;
    saveOptions.SaveFormat = Aspose.Words.SaveFormat.Html;
    saveOptions.Encoding = encoding;
    // saveOptions.ImageSavingCallback = new MyHtmlImageExportCallback();
    saveOptions.ImagesFolder = m_sPathFiles;

    using (MemoryStream msOut = new MemoryStream())
    {
        // Save to the memory steam
        doc.Save(msOut, saveOptions);
    }

Here is the stack trace.

at System.Drawing.Graphics.MultiplyTransform(Matrix matrix, MatrixOrder order)
at x85732faf56f7825d.x3a15c7024016ce52.xb67059efb664b0fb(x0c06161ccb9341e4 xda5bf54deb817e37)
at x85732faf56f7825d.x3a15c7024016ce52.VisitCanvasStart(xb8e7e788f6d59708 canvas)
at x1c8faa688b1f0b0c.xb8e7e788f6d59708.Accept(xf51865b83a7a0b3b visitor)
at x1c8faa688b1f0b0c.xbaec545ec01f92ca.Accept(xf51865b83a7a0b3b visitor)
at x1c8faa688b1f0b0c.xb8e7e788f6d59708.Accept(xf51865b83a7a0b3b visitor)
at x1c8faa688b1f0b0c.xbaec545ec01f92ca.Accept(xf51865b83a7a0b3b visitor)
at x1c8faa688b1f0b0c.xdc4867bff1715a4b.Accept(xf51865b83a7a0b3b visitor)
at x1c8faa688b1f0b0c.xbaec545ec01f92ca.Accept(xf51865b83a7a0b3b visitor)
at x1c8faa688b1f0b0c.xb8e7e788f6d59708.Accept(xf51865b83a7a0b3b visitor)
at x85732faf56f7825d.x3a15c7024016ce52.xe406325e56f74b46(x4fdf549af9de6b97 xda5bf54deb817e37, Graphics x41347a961b838962)
at xf989f31a236ff98c.x00e0b1d9cd99a947.x063e61b390371e67(ShapeBase x5770cdefd8931aa9, PointF xf73214c4b02b3840, Boolean x57772795c05e364c, xcca9b9b2025d882d x17af85f5c27e974d)
at xf989f31a236ff98c.x8aa64ac02744cab2.xbde19bf3ea0915ae(Boolean x047979bcfe41b5d7, xea9682d94fc23852 x0182a6dae298f8a4)
at xf989f31a236ff98c.x8aa64ac02744cab2.xde9333630a439a3b()
at xf989f31a236ff98c.x8aa64ac02744cab2.x69e367df6bceb25b(ShapeBase x10e3e3c2d91f0950, Shape xc9919d3e593d69ed, xcd1c64d43058619d xdfde339da46db651, SizeF x0ceec69a97f73617)
at xce0136f05681c5e9.x967f6fb76e7d0c72.x1a2622a1866b8f97(ShapeBase x8739b0dd3627f37e, Shape x5770cdefd8931aa9)
at xce0136f05681c5e9.x967f6fb76e7d0c72.x0840d2c3fa2eb773(ShapeBase x8739b0dd3627f37e, Shape x5770cdefd8931aa9)
at xce0136f05681c5e9.x967f6fb76e7d0c72.VisitShapeStart(Shape shape)
at Aspose.Words.Drawing.Shape.x2449520719b1e37e(DocumentVisitor x672ff13faf031f3d)
at Aspose.Words.CompositeNode.xf7ae36cd24e0b11c(DocumentVisitor x672ff13faf031f3d)
at Aspose.Words.Drawing.Shape.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.x464d2134480a7bf2(DocumentVisitor x672ff13faf031f3d)
at Aspose.Words.CompositeNode.xf7ae36cd24e0b11c(DocumentVisitor x672ff13faf031f3d)
at Aspose.Words.Paragraph.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.x464d2134480a7bf2(DocumentVisitor x672ff13faf031f3d)
at Aspose.Words.CompositeNode.xf7ae36cd24e0b11c(DocumentVisitor x672ff13faf031f3d)
at Aspose.Words.Body.Accept(DocumentVisitor visitor)
at xce0136f05681c5e9.x967f6fb76e7d0c72.xf5a995748d89aa41(Story x93d8434f027afd5a)
at xce0136f05681c5e9.x967f6fb76e7d0c72.x1e54fa3a59f86a2a(Body x721b2192f9b85c66)
at xce0136f05681c5e9.x967f6fb76e7d0c72.x51ee56decc29a9da(Section xb32f8dd719a105db)
at xce0136f05681c5e9.x967f6fb76e7d0c72.xd7560e2140c6338f()
at xce0136f05681c5e9.x967f6fb76e7d0c72.xe00a9c07c675b8ed()
at xce0136f05681c5e9.x967f6fb76e7d0c72.xa2e0b7f7da663553(Document x6beba47238e0ade6, Stream xcf18e5243f8d5fd3, String xafe2f3653ee64ebc, Boolean xddad811e564048f0, HtmlSaveOptions xc27f01f21f67608c, IDictionary x82fcc4c2a16a6294)
at xce0136f05681c5e9.x967f6fb76e7d0c72.x8cac5adfe79bc025(x8556eed81191af11 x5ac1382edb7bf2c2)
at Aspose.Words.Document.xf381a641001e6830(Stream xcf18e5243f8d5fd3, String xafe2f3653ee64ebc, SaveOptions xc27f01f21f67608c)
at Aspose.Words.Document.Save(Stream stream, SaveOptions saveOptions)
at Citation.Processing.CWord.SaveAsHtmUsingAspose(Byte[] byaData, Encoding encoding, Boolean bRemoveLinks, String sxImagePath, String sxUrlPath)

Hi
Thank you for reporting this problem to us. I managed to reproduce it on my side. Your request has been linked to the appropriate issue. You will be notified as soon as it is resolved.
Best regards,

The issues you have found earlier (filed as WORDSNET-4638) have been fixed in this .NET update and in this Java update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.