Free Support Forum - aspose.com

Workbook.save not working

Hi Aspose team,

I am working on a web application using .net framework 4.0 and Aspose.Cells 5.3.3.0. I am using the following code to create a dynamic xls file which sends to the client without saving to disk:

Dim workbook As Workbook = New Workbook()

Dim i As Integer = workbook.Worksheets.Add()

Dim worksheet As Worksheet = workbook.Worksheets(i)

worksheet.Name = "My Worksheet"

Dim cells As Cells = worksheet.Cells

cells("A1").PutValue("testing")

workbook.Save(Response, "Report.xls", ContentDisposition.Inline, New XlsSaveOptions())

However i am getting an error when i come to save the workbook. The error is as following:

Overload resolution failed because no accessible 'Save' accepts this number of arguments. Please help..

Sorry please ignore the above post i have managed to find a previous post that resolves this. I was basically referencing the .net 3.5 dll instead of the .net 2.0 dll.