50 thoughts on “Read Excel Files in C# .NET Core

  1. Hi, thanks for this article . i tried to use your same create excel sheet api but my case its creating a new excel file but not showing any data in it can u please tell am i missing something or what?

    1. Hello Komal, Thanks for the feedback. Do you have any empty cell in the excel?. Please use the logic mentioned here in the post Read Excel as JSON using OpenXML SDK. It takes care of empty cells and logic is generic enough.
      That’s should resolve your issue if any. Please comment below in case you still face any difficulties.

  2. Hello. Thank you for your great article. Any chance of styling excel export? Like bold headers, font sizes and cell colors.

  3. Thanks for a great article, but I need some help. I have to read excel file and to import data from it to the sql database.
    Could you provide some instructions what needs to be changed in the code you have provided? Thanks

    1. Hello jokono, Thanks for the feedback. You can get excel data as Table and then the same can be used to put into SQL. Please use the logic as discussed here Read excel as JSON. Line number 73 gives you the required results.

      Thank you.

  4. Hi , I would like to download stream of bytes as excel. Could you please let me know samples on the same …thanks much

  5. Thank you for good article. Could you please help on how to use above logic for downloading excel file directly from api or web UI??

  6. This was very useful. Thanks for putting this together. I have query on the empty cell logic. I have few excel sheets with empty cell but it seems the logic above doesn’t give data properly. Could you please help here ?

  7. This helped me . Thanks.Now I need to deal with multiple sheets and update spreadsheet dynamically with more content.

Leave a Reply

Your email address will not be published. Required fields are marked *