Walkthrough: How to create Single/Multisheets Workbooks from an ASPX page.
This walkthrough illustrates how to export data from an ASP.NET page.Click here to run the demo
Before running this demo you should install the GridviewToExcelExportTool.
You can download full demo from here.
The Access Northwind database is included in the package.
The full process is made up of following steps:
- First step is the Web Site creation - choose C# as a language
- Second step is to add a reference to the GEETMultisheet.dll inside the C:\Program
Files (x86)\Cefalà Ing. Ettore\GridviewExcelExportTool\2.0.0\GEETBin folder
for 64bits systems or C:\Program Files\Cefalà Ing. Ettore\GridviewExcelExportTool\2.0.0\GEETBin
for 32 bits systems.
- From Microsoft site download the Access Nothwind database from
here and install it into the App_code folder of your new web site
- Open the default.aspx page and modify it as described hereafter
- Copy next xhtml code and paste it inside the form tag of the default.aspx
page:
-
Then copy following code and paste it into the default.aspx.cs behind file
- Press F5 to run the web page.
Click here to run from this server
For any issue please write to support@gridviewtoexcel.com
|