I need to read a excel data using C#.
If my excel format is .xlsx I'm using
ExcelReaderFactory.CreateOpenXmlRea
and for .xls
ExcelReaderFactory.CreateBinaryRead
When the file is marco emabled (extension .xlsm) what I need to use?
If I'm saving the file in .xls format also DataSet is coming as null.
RumaPosted Sep 7, 2012, 4:29 AM
My file is Ok and I have to read in the way I mentioned. In my project I have several excel upload but all are normal .xls or .xlsx. Only one is macro enabled.
Sharon WhitePosted Sep 4, 2012, 4:46 AM
Is there some problems with your Excel file? For example, some invalid objects exist. If your file is OK, maybe you can try to use some .NET Excel tools to read.