Read excel file from a stream

后端 未结 5 1470
粉色の甜心
粉色の甜心 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 13:10

    Infragistics has an excel component that can read an excel file from a stream.

    I'm using it in a project here and it works well.

    Also the open source myXls component could easily be modified to support this. The XlsDocument contstructor only supports loading from a file given by a file name, but it works by creating a FileStream and then reading the Stream, so changing it to support loading from streams should be trivial.

    Edit: I see that you found a solution but I just wanted to note that I updated the source code for the component so that it now can read an excel file directly from a stream. :-)

提交回复
热议问题