473,326 Members | 2,128 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Delivering SQL Datatable as EXCEL Spreadsheet to the browser?

Hi all,
Can anyone point me to an article about how to transform an ADO.NET
Datatable in ASP.NET 2.0 to appear as Excel in the browser such that the
user can open it up on his/her local machine in Excel if they want?

Thanks...

Mar 7 '07 #1
5 1414
"John Kotuby" <jo***@powerlist.comwrote in message
news:uC**************@TK2MSFTNGP03.phx.gbl...
Can anyone point me to an article about how to transform an ADO.NET
Datatable in ASP.NET 2.0 to appear as Excel in the browser such that the
user can open it up on his/her local machine in Excel if they want?
Google is your friend:
http://www.google.co.uk/search?sourc...xport+to+excel
Mar 7 '07 #2
You may want to look at some of the third-party grid controls out there.
Many of them have an Export to Excel function. I believe the latest grids
from Telerik and Infragistics support this feature.
--

Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

"John Kotuby" <jo***@powerlist.comwrote in message
news:uC**************@TK2MSFTNGP03.phx.gbl...
Hi all,
Can anyone point me to an article about how to transform an ADO.NET
Datatable in ASP.NET 2.0 to appear as Excel in the browser such that the
user can open it up on his/her local machine in Excel if they want?

Thanks...


Mar 7 '07 #3
Hi John,

If you're looking for a commercial solution, check out our FarPoint
Spread for Web Forms component. It's a true ASP.NET spreadsheet that
reads/writes native excel files without needing Excel on the server.
Here's a link to our product tour that loads an Excel file on the
server then gives you the option to view it in Excel on your machine
(click the 'View In Excel' button) - http://www.fpoint.com/netproducts/sp...our/excel.aspx

Please feel free to contact me if you have any questions.

- Donald
FarPoint Technologies, Inc
www.FarPointSpread.com

Mar 7 '07 #4
If you take a DataGridView and change the MIME type of the page to Excel, it
will open fine in Excel. That is the easiest way. Beyond that, you should
look at a third party solution or a third party DLL, as using Office DLLs is
not wise (too much overhead).

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

*********************************************
Think outside the box!
*********************************************
"John Kotuby" <jo***@powerlist.comwrote in message
news:uC**************@TK2MSFTNGP03.phx.gbl...
Hi all,
Can anyone point me to an article about how to transform an ADO.NET
Datatable in ASP.NET 2.0 to appear as Excel in the browser such that the
user can open it up on his/her local machine in Excel if they want?

Thanks...

Mar 7 '07 #5
On Mar 7, 2:55 pm, "John Kotuby" <j...@powerlist.comwrote:
Hi all,
Can anyone point me to an article about how to transform an ADO.NET
Datatable in ASP.NET 2.0 to appear as Excel in the browser such that the
user can open it up on his/her local machine in Excel if they want?

Thanks...
I've done something similar to that with third party tools (from
telerik), you may check out this link for example:

http://www.telerik.com/demos/aspnet/...DefaultCS.aspx

Mar 13 '07 #6

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

Similar topics

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...
6
by: Daniel | last post by:
Hi all, Can i open and edit the excel sheet on web page after downloading? After editing, i close the web page and the excel file auto upload to the server. Is it possible? I really struggling...
9
by: Rui Sampainho | last post by:
Hi Is there any command to transfer the contents of a datatable to an array. What I'm looking for is sort of a bulk process, not an iteration with a loop based on a field by field or row by row...
19
by: cj2 | last post by:
#1 Is there a quick way to export a datatable to an excel file? Or delimited file? #2 Where is the appropriate Microsoft monitored group to ask about writing reports in SQL Reporting services...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.