We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Aspose.Word for .NET save error!

I’ve got exception when save file.

Message:
Index was outside the bounds of the array.

StackTrace:
at x9db5f2e5af3d596e.x66f2271ac271c2df.xebb8ac1152da9a1f(Row xa806b754814b9ae0)
at Aspose.Words.Tables.Table.x148387b100b7e1c7()
at x13cd31bb39e0b7ea.xcc0b5baa75272714.VisitTableStart(Table table)
at Aspose.Words.Tables.Table.x2449520719b1e37e(DocumentVisitor x672ff13faf031f3d)
at Aspose.Words.CompositeNode.xf7ae36cd24e0b11c(DocumentVisitor x672ff13faf031f3d)
at Aspose.Words.Tables.Table.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 Aspose.Words.CompositeNode.x464d2134480a7bf2(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 Aspose.Words.Document.xf381a641001e6830(Stream xcf18e5243f8d5fd3, String xafe2f3653ee64ebc, SaveOptions xc27f01f21f67608c)
at Aspose.Words.Document.Save(String fileName, SaveOptions saveOptions)
at Aspose.Words.Document.Save(String fileName)

Code:

Document doc = new Document(_docFile);
doc.Save(_docOutFile); //Exception thrown from this line.


Please download our sample files from this following link: http://www.languagestudio.com/downloads/msword/save_problem.zip
In save_problem.zip have 2 files following:
1. save_fail.doc - cannot save this file
2. save_ok.doc - just copy ‘save_fail.doc’ and save with MS Word 2007 and it’s no problem with save

Remark: here is product info.
Product name: Aspose.Words.dll
Assembly version: 9.5.0.0
Product version: 2010.10.31
License: Aspose.Total

Thanks,
Nuch

Hi

Thanks for your request. I cannot reproduce the problem on my side. I used the latest version of Aspose.Words for testing. You can download the latest version from here:

http://www.aspose.com/community/files/51/.net-components/aspose.words-for-.net/category1188.aspx

Best regards,


It’s work now. Thank you very much :slight_smile: