How can I use XlsIO in an Asp.Net application?
(Views :1738)

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, with the only difference in the case of a webforms application is that the created spreadsheet is streamed to the client browser. This is the code snippet for streaming 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

XlsIOASPNET.zip
::adCenter::