System.ArgumentOutOfRangeException: Non-negative number required. Parameter name: count



Just finished examining the demos and decided to try to open a Word form but alas. I get the above error. I can open simple word files (plain text) but the file that I have to open is seriously formatted.

I searched previous posts and the same problem was encounrered before and was fixed with a hotfix for Word.1.etc . As I'm using 3.x I'm not sure a previous hotfix can help me.

Waiting for any ideas,




Thank you for considering Aspose.

Please attach the problematic document and post a snippet of code you are using.


Thanx for the fast reply!

I've attached the document.

The code just tries to open the file located at c:\

Dim word As Word = New Word

Dim doc As Document = word.Open("c:\Sartorius.doc")


And here’s the font in use :SartoriusRotisSans.


I guess preview deletes the previously selected attachment so here it is again.


Thanks. We will try to fix this as soon as possible, please check back later.


Hi Dmitry,

I have to make a decision to choose a component for populating Word in .NET in a very short time so I would be grateful if you could come up with a solution to my problem. This post was down in the list so I decided to post a reminder.




I've actually fixed this, but not yet published a hotfix. I will publish the hotfix tomorrow.

There is a document variable that is >45K characters long in the document and it was causing the problem.


Fixed and release Aspose.Word 3.3.1


Thanks a lot. I will try it immediately.