code peice in question:
- Code: Select all
using System;
using System.IO;
using System.Windows.Forms;
using Spire.Pdf;
using Spire.Xls;
using Spire.Doc;
using System.Threading;
using System.Threading.Tasks;
private void openXlsFile(string file)
{
try
{
Workbook workbook = new Workbook();
workbook.LoadFromFile(file);
Worksheet sheet = workbook.Worksheets[0];
workbook.Dispose();
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
}
After some testing i have ruled out that it has anything to do with the specific files checked.