Attempting to open the attached excel with Aspose.Cells causes a System.ArgumentException : Destination array is not long enough to copy all the items in the collection. Check array index and length.. I’m not quite sure what’s causing the error.
Sample code used to reproduce:
var format = FileFormatUtil.DetectFileFormat("BrokenExcel.XLS");
var asposeLoadOptions = new LoadOptions(format.LoadFormat)
{
LoadFilter = new LoadFilter(LoadDataFilterOptions.All)
};
using (var workbook = new Workbook("BrokenExcel.XLS", asposeLoadOptions))
{
}
@bvk,
We were able to observe the issue but we need to look into it more. We have logged the issue in our database for investigation and for a fix. Once, we will have some news for you, we will update you in this topic.
This issue has been logged as
CELLSNET-46841 - Opening specific XLS file with Aspose errors
This is to inform you that we have fixed your issue now. We will soon provide you the fixed version after performing QA and incorporating other enhancements and fixes.
@bvk,
Thank you for the feedback and good to know that your issue is sorted out by the suggested version. Feel free to contact us at any time if you need further help or have some other issue or queries, we will be happy to assist you soon.
The issues you have found earlier (filed as CELLSNET-46841) have been fixed in Aspose.Cells for .NET v19.8. This message was posted using BugNotificationTool from Downloads module by Amjad_Sahi