I want to read xls from the server. I was able to download the file using WebClient, but now I want to open it without saving the file.
var request = WebRequest.Create(location); var response = request.GetResponse(); var stream = response.GetResponseStream(); var document = SpreadsheetDocument.Open(stream, false); if (stream != null) stream.Close();
My code stops at SpreadsheetDocument.Open, it causes the following error:
It is not possible to work in a stream that does not support search.
What am I doing wrong, why can not I open a document?
source share