Articles in this section
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

XLSIO_ASP.NET.zip

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied