Read excel file from a stream

后端 未结 5 1462
粉色の甜心
粉色の甜心 2020-11-30 12:43

I need a way to read a Excel file from a stream. It doesn\'t seem to work with the ADO.NET way of doing things.

The scenario is that a user uploads a file through a

5条回答
  •  一向
    一向 (楼主)
    2020-11-30 12:55

    It seems i found a soultion to the problem myself.

    http://www.codeplex.com/ExcelDataReader

    This library seems to work nicely and it takes a stream to read the excel file.

    ExcelDataReader reader = new ExcelDataReader(ExcelFileUpload.PostedFile.InputStream);
    

提交回复
热议问题