473,322 Members | 1,405 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,322 software developers and data experts.

HTML Table To Excel

I have an HTML table which has all kinds of special formatting and coloring
and I am looking for how I should get this output to excel.

I have an example working which is using the response.write and a
Datagrid.RenderControl method to stream the output to excel. I am guessing
that this method merely writes the out put to my datastream rather then
outputing the result to my web page, but the output would look just exactly
like it is currently rendered in my HTML page.... Is that about right?

If I were to the same with my HTML table, would all of my coloring and
formatting be rendered correctly?

Can I create a formula and place it into a cell? What would this look like?
Nov 19 '05 #1
2 1741
Here are some best practices on the subject of exporting to Excel from
ASP.NET.
This should provide most of the answers you seek, along with some useful
examples.
http://www.aspnetpro.com/NewsletterA...200309so_l.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Jim Heavey" <Ji*******@discussions.microsoft.com> wrote in message
news:3F**********************************@microsof t.com...
I have an HTML table which has all kinds of special formatting and coloring
and I am looking for how I should get this output to excel.

I have an example working which is using the response.write and a
Datagrid.RenderControl method to stream the output to excel. I am
guessing
that this method merely writes the out put to my datastream rather then
outputing the result to my web page, but the output would look just
exactly
like it is currently rendered in my HTML page.... Is that about right?

If I were to the same with my HTML table, would all of my coloring and
formatting be rendered correctly?

Can I create a formula and place it into a cell? What would this look
like?

Nov 19 '05 #2
You can use ASP.NET to generate a CSV file of Mime Type text/plain or
text/csv and write it back to the browser

--
rajagopal

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #3

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

Similar topics

6
by: A P | last post by:
Is this possible? I am planning to export data from SQL that generates HTML table. Instead of selecting the table and then copy then paste to word, I need a script(JS or VB) that will...
2
by: Matthew | last post by:
I've been trying to find a way to gather up data contained in a table or tables on a previously generated html page in order to send it to a cgi for further processing. Ideally this would scrape...
3
by: Spacy | last post by:
Am creating a HTML Report in asp.net. To save this report to excel on client-side, i write this code: Response.ContentType = "application/vnd.ms-excel" Response.AddHeader("content-disposition",...
0
by: Spacy | last post by:
I have 2 hyperlinks. On the click of first hyperlink, ExcelReport.aspx is executed which contains the code: Response.ContentType = "application/vnd.ms-excel"...
1
by: v_verno | last post by:
Good day, I have a web page that shows info retrieved from a MySQL db and I would like to convert all these data into an .XLS file. Have searched the net high and low but seems that I'm unable to...
0
by: Sonnich | last post by:
Hi all! I haven't being doing that much in ASP, but I have to create this: It has to read out data from some DB to excel. The following (corrected) code works if just it outputs as html, once...
6
by: McKirahan | last post by:
I an using ASP to read a database table and generate an HTML table which is save via FSO with a file extension of .xls which opens up in MS-Excel. I am inserting several lines of text into a cell...
4
by: Sonnich | last post by:
Hi all! We discussed it lately, how to create xls files. I use(d) a way to save in html format, which excel can open nicely. However, now I need 2 sheets, and I am stuck on that. Any...
5
by: =?Utf-8?B?c2NobWlkdGU=?= | last post by:
Hi How can I Export an HTML Table to excel? My goal is a button, and when the user clicks this button a popup appears asking the user to 'open' or 'save' the generated Excel file. Actually...
0
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...
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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.