My company has a license for GemBoxSpreadSheet 35.3.30.1012.
I am making a call as follows:
Response.ContentType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
Response.AddHeader("Content-Disposition", "attachment; filename=" + "ExportedChartData.xlsx")
ef.SaveXlsx(Response.OutputStream)
This final line throws the following error:
Cannot open package because FileMode or FileAccess value is not valid for the stream.
When I use ExcelFile.SaveXls(Stream)
it works just fine. I don’t wish to buy a new license, so if this is a bug in the version I am using, I would like a solution.