EasyXLS

How to write and open an Excel file in browser using Response stream

EasyXLS™ library allows you to create Excel files in xls, xlsx, xlsm or xlsb file format. The Excel file can be written to a stream like the Response stream and opened in web browser.

An open/save dialog is opened in browser from ASP.NET or Classic ASP (VBScript) and launches the Excel file directly from the browser.

Source code sample

The below example shows how to export an Excel file in C#, VB.NET and J# from ASP.NET and also Classic ASP. When the export is finished, the Excel file is opened in browser.

C#.NET
VB.NET
ASP
Coldfusion

Available for: Professional, Excel Writer, Excel Express Writer
Go to top

EasyXLS Excel libraries:

.NET
.NET Excel Library
full .NET version to import, export or convert Excel files
.NET Excel Writer
.NET version to create and export Excel files
COM+ Excel Library
full COM+ version to import, export or convert Excel files
COM+ Excel Writer
COM+ version to create and export Excel files
-
Java
Java Excel Library
full Java version to import, export or convert Excel files
Java Excel Writer
Java version to create and export Excel files
Download EasyXLS™ Excel Library for .NET and Java

File formats:

MS Excel 97 - 2003
MS Excel 2007 - 2019
MS Excel 2021
Office 365
XLSXXLSMXLSBXLS
XMLHTMLCSVTXT