Document raises exception

I have an Aspose.Total license. Working specifically with the Aspose.Words.dll v 13.2.0.0, I am loading this .DOC file and trying to save it as a .PDF. When I execute the .Save function, I get the exception that follows this message. This is the code:

PdfSaveOptions opt = new PdfSaveOptions();

opt.SaveFormat = SaveFormat.Pdf;

doc.Save(OutputFile, opt);

I'd appreciate any help with this.

Jim McFadden/Unum

+ + +

Message: Unable to cast object of type 'Aspose.Words.Tables.Row' to type 'Aspose.Words.Story'.

TargetSite = Aspose.Words.Story xe5cdc2a3cec80364(Aspose.Words.StoryType)

StackTrace = at Aspose.Words.Section.xe5cdc2a3cec80364(StoryType xdbbf47b5e620c262)
at Aspose.Words.Section.x8a4414b7d9d4073f(Node x40e458b3a58f5782)
at Aspose.Words.CompositeNode.xef23aa45e7612fdd(Node x40e458b3a58f5782, Node xff5adbb92d63bf52, Boolean x7f43f79506f73a73)
at Aspose.Words.CompositeNode.InsertAfter(Node newChild, Node refChild)
at Aspose.Words.CompositeNode.AppendChild(Node newChild)
at Aspose.Words.Section.EnsureMinimum()
at x13cd31bb39e0b7ea.xcc0b5baa75272714.VisitSectionStart(Section section)
at Aspose.Words.Section.x2449520719b1e37e(DocumentVisitor x672ff13faf031f3d)
at Aspose.Words.CompositeNode.xf7ae36cd24e0b11c(DocumentVisitor x672ff13faf031f3d)
at Aspose.Words.Section.Accept(DocumentVisitor visitor)
at Aspose.Words.CompositeNode.x464d2134480a7bf2(DocumentVisitor x672ff13faf031f3d)
at Aspose.Words.CompositeNode.xf7ae36cd24e0b11c(DocumentVisitor x672ff13faf031f3d)
at Aspose.Words.Document.Accept(DocumentVisitor visitor)
at x13cd31bb39e0b7ea.xcc0b5baa75272714.x18dfca7c5fd2402f(x8556eed81191af11 x5ac1382edb7bf2c2)
at x59d6a4fc5007b7a4.xcde671c53995c411.xd9db07500873ae98(Document x3664041d21d73fdc, xdeb77ea37ad74c56 xdfde339da46db651)
at Aspose.Words.Document.UpdatePageLayout()
at Aspose.Words.Document.x410db0f4a89a6ef1(Boolean x24af0daafcd8fb8c)
at Aspose.Words.Document.get_xcde671c53995c411()
at Aspose.Words.Document.get_PageCount()
at xf989f31a236ff98c.x6c74398bceb133f8.xa2e0b7f7da663553(x8556eed81191af11 x5ac1382edb7bf2c2)
at Aspose.Words.Document.xf381a641001e6830(Stream xcf18e5243f8d5fd3, String xafe2f3653ee64ebc, SaveOptions xc27f01f21f67608c)
at Aspose.Words.Document.Save(String fileName, SaveOptions saveOptions)
at UnumProvident.BatchServices.Utilities.Stitch.Convert.AsposeCommon.ConvertToPDF(Document doc, String SourceFile, String OutputFile, String Password, Int32 DPI, DocDirectorConfiguration Configuration, Hashtable items, String RequestID) in C:\Projects\TFS\Legacy-Common\UBSDocDirector\Development\Source\Aspose.Common\AsposeCommon.cs:line 161

Hi Nancy,

Thanks for your inquiry. I have managed to reproduce the same issue at my side. I have logged this issue as WORDSNET-7963 in our issue tracking system. I have linked this forum thread to the same issue and you will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

FWIW: This was working in version 9 of Aspose.Word.

Hi Nancy,


Thanks for sharing the detail. I have shared this information with our development team. Currently, your issue is under analysis phase. We will update you via this forum thread once this issue is resolved.

We appreciate your patience.

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


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