Wednesday, March 19, 2008

Reading from an Excel File with C#

This post has moved here: Reading from an Excel File with C#

5 comments:

Anonymous said...

How to avoid reading empty rows from an excel file?

Garth said...

Anonymous,
Hi to stop reading empty lines try including the following in your SQL where 'MyField' is one of your fields that you know will be empty.

WHERE LEN(MyField) > 0

If this does not work then I think you'll have to remove the empty fields from the excel or check for null fields in your code after the extraction has been done.
Hope this helps.

Alex said...

In this situation recommend to use this software-corrupted repair Excel recovery tool,because when my friends were in same situation,program helped their,tool is free as far as I can see,it can be easily solved with Excel recovery software for recovery xls,will allow you to Excel files recovery and make sure, that it works and that your work results can now be recovered just in several clicks,allows to save many hours of your work for recovery for Excel download and recover everything, that was done before.

Anonymous said...

Some months ago I had a lot of corrupted excel files and I didn't know what to do,but in some time to me recommended-troubleshooting Microsoft Excel,and tool helped me,as far as I remember it has free status and has no one feature,utility can try Excel repairs manually, by retyping all documents, but it is time consuming, you can spend many days for this purpose, when Excel file has corrupted,tool for Excel repairing is very easy to use, when Excel file corrupted, it has only several buttons and functions for Excel document repair: open file, start its analysis, preview of recovered contents and export of recovered data into a new document in Microsoft Excel format,allows to perform all steps and take a look into recovered contents of this file.

Alex said...

My sister asked me an advice about crashed excel files. I advised it an one tool, which to my mind is the best solution in this and probably other cases - excel 2007 recovery.