Free Support Forum - aspose.com

Opening a file

I am getting the following error when trying to open an exel file:

Source array was not long enough. Check srcIndex and length, and the array's lower bounds.

Thanks,

Steve Gregory


This message was posted using Aspose.Live 2 Forum

Hi,

Please post your template file. And point out which version do you use? We will check is soon.

I am using version 4.3.0.0

I have attached the file I'm trying to load.

Hi,

This file is protected with password.

Please call Workbook.Open(Stream stream, FileFormatType type, string password) method to open the workbook.

Sorry, I should have mentioned the file was password protected. Attached is another one that isn't and still has the same problem. The password protection is no issue, as I load 70 other Excel files in that are also password protected with no problem.

Cheers,

Steve

Hi Setve,

Please try this fix.

Wow. You fixed it! What was the issue?

Thanks very much... unbelievable turnaround. Very impressed.

Cheers,

Steve

Hi Steve,

I think it's caused by the old version.