I need to save a workbook in a MVC C# application that I’ve been working on.
I’m using the following code,
workbook.Save(this.Response, “Report.xls”, ContentDisposition.Inline, new XlsSaveOptions());
And it works perfectly in the application I originally developed, but after moving the code over into the MVC project it needs to be in, I’m getting errors.
Both have the same code, the same data, the same using statements and assembly references, and yet it works perfectly in the original, but in the MVC application the whole line of code is underlined in red and it says
"The best overloaded method match for ‘Aspose.Cells.Workbook.Save(System.Web.HttpResponse, string, Aspose.Cells.ContentDisposition, Aspose.Cells.SaveOptions)’ has some invalid arguments".
I would appreciate any help in resolving this issue, either in fixing this error or pursuing an alternate method for streaming the file to the end-user.