ArgumentOutOfRangeException on converting rtf to docx

Technical support for Spire.Doc

Moderator: iceblue support

ArgumentOutOfRangeException on converting rtf to docx

Postby emediat » Tue Aug 07, 2012 1:22 pm

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
You do not have the required permissions to view the files attached to this post.
emediat
 
Posts: 3
Joined: Thu Aug 02, 2012 8:18 am

Re: ArgumentOutOfRangeException on converting rtf to docx

Postby harry.support » Wed Aug 08, 2012 10:38 am

Hi,

Sorry for this inconvenience caused by us.
We have fixed your problem and a hotfix of Spire.Doc will be release tomorrow, and then, we will inform you.
Harry
Technical Support / Developer,
e-iceblue Support Team
User avatar
harry.support
 
Posts: 180
Joined: Mon Nov 08, 2010 3:11 pm

Re: ArgumentOutOfRangeException on converting rtf to docx

Postby amy.zhao » Thu Aug 09, 2012 3:00 am

Hi emediat,

The latest hotfix of Spire.Doc has be released, please download Spire.doc(v4.4.10) from here( http://www.e-iceblue.com/Download/download-word-for-net-now.html).
If you have any problems, please feel free to contact us.

Have a nice day!

Best wishes.
Amy
e-iceblue support
User avatar
amy.zhao
 
Posts: 2263
Joined: Wed Jun 27, 2012 8:50 am

Re: ArgumentOutOfRangeException on converting rtf to docx

Postby emediat » Thu Aug 16, 2012 12:19 pm

Hi Amy,

With Spire.doc version 4.4.10 it seems to work. There are no more exceptions with my test documents.
Many thanks for your quick response and bug fixing!

Best regards,
Florian
emediat
 
Posts: 3
Joined: Thu Aug 02, 2012 8:18 am

Re: ArgumentOutOfRangeException on converting rtf to docx

Postby amy.zhao » Fri Aug 17, 2012 12:56 am

Hi Florian,

You're welcome. :lol:

If you have any problems, please feel free to contact us.

Best wishes.
Amy
e-iceblue support
User avatar
amy.zhao
 
Posts: 2263
Joined: Wed Jun 27, 2012 8:50 am


Return to Spire.Doc

Who is online

Users browsing this forum: No registered users and 0 guests