Export excel --> html - How to clean html?  | | |
April 9th, 2004, 11:35 PM
|
#1 (permalink)
| | Member
Join Date: Oct 2001 Location: Adelaide, South Aust
Posts: 461
| Export excel --> html - How to clean html?
I have an excel worksheet which is a simple table with 4 columns and about 1700 rows. I want to export it as a web page but the page ends up being massive (over 1.3mb). I see lots of excel specific code in there and was wondering if there was a way to clean the html that excel (2002) puts in there.
__________________
Bill S.
Editor
BuickStreet.com
V8PC.com/web <-- logo comp
|
| |
April 9th, 2004, 11:59 PM
|
#2 (permalink)
| | Perfetc Member
Join Date: Jan 2003 Location: Maryland Suburbia
Posts: 4,334
|
thats really damn big for an html file, you're better off just exporting it as a .txt file and then linking to that (txt files will load in the browser)
I tried making a sample page of 2000 rows and 4 columns and tried to import the excel file into dreamweaver and it gave me a message that said "file is too big and would take a very long time to import, please try breaking into multiple pages"
Which seemed really dumb.. but who knows.
Last edited by VHockey86 : April 10th, 2004 at 12:02 AM.
|
| |
April 10th, 2004, 12:04 AM
|
#3 (permalink)
| | Did you try Google yet?
Join Date: Feb 2003 Location: Buckhannon, WV
Posts: 3,468
|
I had a DB query in the mysql client that spit out a 22 meg HTML file, 7 columns and over 100,000 rows. Made IE and Mozillia choke easily.
Text will be much easier on the browser but not as pretty.
__________________
My computer is bigger than yours!
|
| |
April 10th, 2004, 12:09 AM
|
#4 (permalink)
| | Ultimate Member
Join Date: Jun 2002 Location: Iowa
Posts: 2,879
|
Short answer : Yes
Longer answer...... it takes going through the entire file line by line and removing the "extra" garbage that gets stuck in. Doing a search and replace "might" be and option for some things........ Lots of work..... but possible to reduce the file size quite a bit if you have the time and know how. |
| |
April 10th, 2004, 12:10 AM
|
#5 (permalink)
| | Member
Join Date: Oct 2001 Location: Adelaide, South Aust
Posts: 461
|
The original xls file is 305kb. The csv file is 174kb. Is there a program that will clean the html code from an excel generated html page like dreamweaver does to word exported html? |
| |
April 10th, 2004, 12:11 AM
|
#6 (permalink)
| | Did you try Google yet?
Join Date: Feb 2003 Location: Buckhannon, WV
Posts: 3,468
|
What about cutting and pasting it into Dreamweaver or similar? |
| |
April 10th, 2004, 12:23 AM
|
#7 (permalink)
| | Perfetc Member
Join Date: Jan 2003 Location: Maryland Suburbia
Posts: 4,334
|
I tried pasting into dreamweaver but it just gave an error sayign it would be too large |
| |
April 10th, 2004, 12:34 AM
|
#8 (permalink)
| | 1010011010
Join Date: Oct 2001 Location: Chicagoland IL
Posts: 3,249
|
You should be able to import the Excel file into html, then strip out anything Excel-specific, leaving only the values and the tags html uses to create the table: <table></table> (table) or <tr></tr> (table row) or <td></td> (table cell).
The structure will look like: Code: <table>
<tr>
<td> your 1st col</td>
<td> your 2nd col</td>
<td> your 3rd col</td>
<td> your 4th col</td>
</tr>
The above will be repeated 1700 times (once for each of your rows) then the end table tag
</table> If you have W2K or XP, Notepad can do a Find... Edit... Replace and you can manually strip out all the extra Excel junk.
__________________
"The trouble with our liberal friends is not that they're ignorant; It's just that they know so much that isn't so." -- Ronald Reagan
|
| |
April 10th, 2004, 12:54 AM
|
#9 (permalink)
| | Member
Join Date: Oct 2001 Location: Adelaide, South Aust
Posts: 461
|
That was the horror alternative I was facing. I was hoping for a better way. There is lot's of code. |
| |
April 10th, 2004, 01:19 AM
|
#10 (permalink)
| | Perfetc Member
Join Date: Jan 2003 Location: Maryland Suburbia
Posts: 4,334
|
how badly does it need to be in html? Do you need the "interactive" features?
Even if u were able to cut the code/filesize in half it would still be really big, and a pain for web browsers to handle/load
Just imo, but I think your best bet is txt or rtf |
| | | Thread Tools | Search this Thread | | | | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Most Active Discussions | | | | | Recent Discussions  | | | | | |