We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Excel File Download from .Net not working

Hi,

I created and application that is supposed to write data to excel using Aspose.Cells and then show a Save file dialog to allow user to choose between open and save. Code works fine till getting the open/save dialog box. After that nothing happens. Regardless of what user selects (Open Or Save from Dialog box) nothing happens.

After writing to sheet , I am using below to get dialog box , pResponse is my HttpResponse object.

aBook.Save(pResponse, "Test.xls", ContentDisposition.Attachment, ((SaveOptions)new XlsSaveOptions()));

Please help ASAP.

Hi,


It should work fine. It might be your browser or other issue on your end. Also, you need to have Excel viewer or MS Excel installed if you open the generated/saved file on the fly.

Anyways, could you add a line to your code e.g.

aBook.Save(pResponse, “Test.xls”, ContentDisposition.Attachment, new XlsSaveOptions());
Response.End();

If you still find the issue, kindly create a sample web application, zip it and post it here, we will check it soon.

Thank you.