Replace
using (SpreadsheetDocument sd = SpreadsheetDocument.Open(FileUpload1.PostedFile.FileName, false))
{
}
with
using (SpreadsheetDocument sd = SpreadsheetDocument.Open(FileUpload1.PostedFile.InputStream, false))
{
}
No comments:
Post a Comment