Thanks for your posting and using Aspose.Cells.
We were able to observe this issue by executing the following sample code with the latest version: Aspose.Cells
for .NET v22.214.171.124. The ListObject.ListColumns[i].Name does not return correct name for XLS file but it returns correct name for XLSX file.
We have logged this issue in our database for investigation. We will look into it and fix this issue. Once the issue is resolved or we have some other update for you, we will let you know asap.
This issue has been logged as
- CELLSNET-44076 - ListObject.ListColumns[i].Name is incorrect when Workbook opens XLS file
I have also attached the source xls and xlsx files for a reference.
//Works good for XLSX file
//Works bad for XLS file
Workbook workbook = new Workbook(filePath);
Worksheet worksheet = workbook.Worksheets;
ListObject ListObject = worksheet.ListObjects;