Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Thu Jun 17, 2021 5:03 pm

Hi, I'm using spire.doc, more specifically the loadfromfile function. However, I get the error "Index out of bounds of array". I'm using spire.doc version 9.6.10, with the attached file. the code is below, filepath is passed down. I've tried removing the "@filePath" to just "filePath". I've also attempted to load the file into a buffer and call loadfromstream but still same outcome

Code: Select all
using Spire.Doc;

try
            {
                using (Document doc = new Document())
                {
                    doc.LoadFromFile(@filePath);
                }
            }


BNKubheka
 
Posts: 1
Joined: Thu Jun 17, 2021 4:45 pm

Fri Jun 18, 2021 10:04 am

Hello,

I tested your case and did reproduce your issue. I have logged it in our bug tracking system with the ticket SPIREDOC-6172. If there is any update, we will let you know. Apologize for the inconvenience caused.
If you have any other questions related to our products, please feel free to contact us.

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Return to Spire.Doc