date cell in Excel is null

G

Guest

Hi.

I hope somebody can help me.

I am trying to read an excel file via ADO.NET.

I have tried using a datareader and filled datatable (by oledbadapter).

My problem is that some cells with date format are being returned as null.

Can anybody offer some explanation and solution?

I am trying to avoid using automation (creating an excel process instance).
With it though, I have no problem reading the data...

Thank you.
 
B

Bernie Yaeger

Hi,

You say 'some cells' - then some must be being read correctly. Is there a
pattern to those that are being returned null, something that distinguishes
them from the other date cells?

Bernie Yaeger
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top