I'm evaluating and testing Spire.Doc (Version 4.4.6.3040) for converting .rtf and .doc documents to .docx. I use following code lines:
var document = new Spire.Doc.Document();
document.LoadFromFile(@"C:\temp\testinput.rtf");
document.SaveToFile(@"C:\temp\testoutput.docx", Spire.Doc.FileFormat.Docx);
During conversion of some .rtf documents (saved from Word 2010, example is attached) I get an ArgumentOutOfRangeException on calling document.SaveToFile:
ArgumentOutOfRangeException
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.Collections.Generic.List`1.System.Collections.IList.get_Item(Int32 index)
at Spire.Doc.Collections.ColumnCollection.get_Item(Int32 index)
at qo.a(ColumnCollection A_0, Boolean A_1)
at qo.f(Section A_0)
at qo.a(SectionCollection A_0)
at qo.i(Document A_0)
at ou.b(Stream A_0, IDocument A_1)
at ou.a(String A_0, IDocument A_1)
at Spire.Doc.Document.h(String A_0)
at Spire.Doc.Document.SaveToFile(String fileName, FileFormat fileFormat)
Any help is appreciated!
Many thanks