Saving web page as Excel spreadsheet

  • Thread starter Thread starter Mark
  • Start date Start date
M

Mark

I have a web page with a GridView that displays data from a SqlDataSource
component.

I need to allow the user to click a button and have this data delivered to
them in a .xls file that they can save to their local machine.

Is the a way to do this with .NET or will I need a third party component?
 
There are a couple of ways.

1. Change MIME type to Excel and display
2. Use a third party library like ExcelWriter

It depends on how much funcationality of Excel you need.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

*************************************************
Think outside of the box!
*************************************************
 
Back
Top