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.

Sat May 20, 2017 10:12 am

Hello,

I just discovered this amazing framework, and I encountered a problem while reading data from excel.

Everything is great except one column is returned empty.

Image

It's the first column I am talking about (the last as well, but it's the same problem)

and here is the excel sheet:

Image

I believe it has something to do with the formatting (Numbers and special characters), because it's the only difference the columns have.

But I have found nothing while googling.

Just in case, here is the code I use:

Code: Select all
Workbook workbook = new Workbook();
         workbook.LoadFromFile(filePath.Text);
         Worksheet sheet = workbook.Worksheets[0];
         DataTable dataTable = sheet.ExportDataTable();
         DataView view = new DataView(dataTable);
         dataGrid.ItemsSource = view;
         dataGrid.AutoGenerateColumns = true;




Thanks for your time,

serafimovski.nikola@gmail.com
 
Posts: 1
Joined: Sat May 20, 2017 9:59 am

Mon May 22, 2017 3:23 am

Hello,

Thanks for your inquiry. Please attach the document you were testing here or send it to us(support@e-iceblue.com) via email.

Thanks,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Return to Spire.XLS