473,473 Members | 2,054 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Saving web page as Excel spreadsheet

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?

--
Best regards
Mark
Sep 8 '06 #1
1 1208
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!
*************************************************
"Mark" <sw****@hotmail.comwrote in message
news:OX**************@TK2MSFTNGP03.phx.gbl...
>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?

--
Best regards
Mark

Sep 8 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Phil Powell | last post by:
What would one best recommend to parse an existing Excel spreadsheet (was done in Excel 97 or 2000 not sure to be honest)? I am looking for the most practical way of parsing an existing...
1
by: Roz Lee | last post by:
I want to cut and paste an Excel spreadsheet into a web page and then update my SQLServer database - it's basically an import function but using cut and paste rather than reading the file from a...
1
by: Jim, N2VX | last post by:
I'd like to create/display an Excel spreadsheet from javascript. We have an HTML page with results of a search and it can be reasonably large. The first attempt was to format the data into an...
0
by: Chris | last post by:
I'am creating program in VB.NET which will transform excel spreadsheet to SQL database automatically. When I use SQL wizard to export excel spreadsheet data there is an option of saving DTS package...
2
by: Colleyville Alan | last post by:
I have been working on an application that queries data from Access, loads it into an array, and then writes it to an Excel spreadsheet. I use the array approach to have fine control over spacing,...
1
by: desi.american | last post by:
I have a dynamically generates ASPX page with tables and data. Depending on user selection, the same page can be viewed as a simple web page (rendered in HTML) or as an excel spreadsheet. If the...
2
by: lanem | last post by:
Does anyone know how to open and excel spreadsheet on the server and make changes to it and then re-save it? I am trying to do this from an asp.net web page using OWC11. Thanks.
0
by: JLuv | last post by:
What i want to do is take the checked data from a datagrid, send it to a table, then show that table on an Excel Spreadsheet. Here is a little bit of my code... //adminProgress.aspx...
3
AllusiveKitten
by: AllusiveKitten | last post by:
Hi, I really hope you can help... I am currently trying to write a code that will take an excel spreadsheet & save it to an access Table. I come up with an error "Operation is not allowed when...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.