Category / Section
How can I use XlsIO in an Asp.Net application?
1 min read
XlsIO can be used in both winforms and webforms applications without any changes to the code. The usage is the same for both winforms and webforms applications, however XlsIO also supports to stream the created spreadsheet to the client browser. Use below code snippet to stream the generated spreadsheet to browser.
C#
// Stream the workbook to browser myWorkbook.SaveAs("Sample.xls",ExcelSaveType.SaveAsXLS,Response,ExcelDownloadType.PromptDialog);
VB
' Stream the workbook to browser myWorkbook.SaveAs("Sample.xls", ExcelSaveType.SaveAsXLS, Response, ExcelDownloadType.PromptDialog)
Here is the sample