Using ASP.NET, how do I open an Excel file in Microsoft Excel instead of the browser window?
This message was posted using Page2Forum from SaveType Enumeration - Aspose.Cells for .NET and Java
Using ASP.NET, how do I open an Excel file in Microsoft Excel instead of the browser window?
Hi,
Thanks for considering Aspose.
Here is an example code for your reference:
Workbook wb = new Workbook();
Worksheet sheet = wb.Worksheets[0];
Aspose.Cells.Cell cell = sheet.Cells["A1"];
cell.PutValue("Hello World!");
wb.Save("Test.xls", FileFormatType.Default, SaveType.OpenInExcel,Response);
Thank you.