Hello, when executing LoadFromFile we are experience an Error: Index was out of range. Must be non-negative and less than the size of the collection.
Code:
Document documentOrg = new Document();
documentOrg.LoadFromFile(docXProposalOrgFileDocument, FileFormat.Docx2010);
Spire.Doc version: 10.11.0
.Net Framework: 4.8
IIS 10, Windows Server 2019
I have tried updating to Spire.Doc 11.2.3.0 and received the same error. I've also tried FileFormat.Docx and FileFormat.Docx2013 and received the same error.
Attached is the original document which comes from another source system. I do notice the source document is in Compatibility mode. When I physically open the Word document, convert it, it does load successfully. We don't have a method to automatically convert out of Compatibility mode. Since the error comes from Spire.Doc software, I can't determine if it's a specific table or group of data in the document that is causing the issue.
Exception Details:
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.Collections.ArrayList.get_Item(Int32 index)
at Spire.Doc.Table.췷(Table A_0, Int32 A_1, ArrayList A_2, ArrayList A_3)
at Spire.Doc.Table.캔(Table A_0)
at spr䑗.캔(spr愪 A_0)
at spr䌝.캔(spr愪 A_0)
at spr㛙.췷(Document A_0)
at spr㘼.켱()
at spr㛙.큫()
at spr㱞.켱()
at spr㱞.췷(String A_0, Document A_1, spr紂 A_2)
at Spire.Doc.Document.ᳩ(String A_0)
at Spire.Doc.Document.LoadFromFile(String fileName, FileFormat fileFormat, String password)