Spire.XLS is a professional Excel API that enables developers to create, manage, manipulate, convert and print Excel worksheets. Get free and professional technical support for Spire.XLS for .NET, Java, Android, C++, Python.

Wed Jan 11, 2017 3:00 pm

Hello,

when calling LoadFromFile(xls) i often get the following exception:
'The docfile has been corrupted (Exception from HRESULT: 0x80030109)

The sheets of the xls are password protected.
After I manually remove and reenable the protection, LoadFromFile succeeds.

What could be the cause?

I used version Spire.XLS 7.11.34.7040, and 7.8, 7.9 to test. The xls are in 97-2003 format.

Regards
Sanjay

sanjaysingh
 
Posts: 1
Joined: Wed Jan 11, 2017 2:22 pm

Thu Jan 12, 2017 5:46 am

Hi Sanjay,

Thanks for your inquiry.
I have tested the case you mentioned with the Spire.XLS version 7.11.34, but it run without problem. And in this situation, please provide us the sample file you try to load. It will be much more helpful to investigate the issue.

Sincerely,
Simon
E-iceblue support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Tue Jan 17, 2017 7:10 am

Hi Sanjay,

Hope you are doing fine.
How is the issue going? Would you please give us some feedback as your convenience. If it's not fixed, please provide the sample documents to us for a further investigation.

Sincerely,
Simon
E-iceblue support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Return to Spire.XLS