home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Applications and Operating Systems
Ask a Tech Support Question (free)!

Export excel --> html - How to clean html?

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2639
Discussions: 200,520, Posts: 2,374,498, Members: 245,842
Old April 9th, 2004, 11:35 PM   Digg it!   #1 (permalink)
Member
 
BITM@D's Avatar
 
Join Date: Oct 2001
Location: Adelaide, South Aust
Posts: 461
Send a message via Yahoo to BITM@D
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
BITM@D is offline   Reply With Quote
Old April 9th, 2004, 11:59 PM     #2 (permalink)
Perfetc Member
 
VHockey86's Avatar
 
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.
VHockey86 is offline   Reply With Quote
Old April 10th, 2004, 12:04 AM     #3 (permalink)
Did you try Google yet?
 
Siliconjunkie's Avatar
 
Join Date: Feb 2003
Location: Buckhannon, WV
Posts: 3,468
Send a message via AIM to Siliconjunkie
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!
Siliconjunkie is offline   Reply With Quote
Old April 10th, 2004, 12:09 AM     #4 (permalink)
Ultimate Member
 
crouse's Avatar
 
Join Date: Jun 2002
Location: Iowa
Posts: 2,879
Send a message via ICQ to crouse
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.
__________________
USA Linux Users Group
OpenSUSE.us
crouse is offline   Reply With Quote
Old April 10th, 2004, 12:10 AM     #5 (permalink)
Member
 
BITM@D's Avatar
 
Join Date: Oct 2001
Location: Adelaide, South Aust
Posts: 461
Send a message via Yahoo to BITM@D
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?
BITM@D is offline   Reply With Quote
Old April 10th, 2004, 12:11 AM     #6 (permalink)
Did you try Google yet?
 
Siliconjunkie's Avatar
 
Join Date: Feb 2003
Location: Buckhannon, WV
Posts: 3,468
Send a message via AIM to Siliconjunkie
What about cutting and pasting it into Dreamweaver or similar?
Siliconjunkie is offline   Reply With Quote
Old April 10th, 2004, 12:23 AM     #7 (permalink)
Perfetc Member
 
VHockey86's Avatar
 
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
VHockey86 is offline   Reply With Quote
Old April 10th, 2004, 12:34 AM     #8 (permalink)
1010011010
 
jmichna's Avatar
 
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
jmichna is offline   Reply With Quote
Old April 10th, 2004, 12:54 AM     #9 (permalink)
Member
 
BITM@D's Avatar
 
Join Date: Oct 2001
Location: Adelaide, South Aust
Posts: 461
Send a message via Yahoo to BITM@D
That was the horror alternative I was facing. I was hoping for a better way. There is lot's of code.
BITM@D is offline   Reply With Quote
Old April 10th, 2004, 01:19 AM     #10 (permalink)
Perfetc Member
 
VHockey86's Avatar
 
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
VHockey86 is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (1660)
FT HOOD attack: 7 killed 12 injured (70)
HELP!!! What do you think of this s.. (25)
windows 7 retail and rtm (5)
Review My Build (6)
Looking for a graphic card that wil.. (30)
My 1st pc build (40)
PC Modern Warfare 2: it's much wors.. (12)
core i7 extreme 975, nvidia 9400gt (9)
Building my first computer (13)
Aero in Vista (7)
[F@H SPAM 11/1/09]New month . . . n.. (34)
Internet very slow since updating A.. (10)
slaving laptop drive (7)
Recent Discussions
[F@H SPAM 11/08/09] Where has all the.. (1)
nvidia geforce 9500GT 1gig DDR2 (3)
[F@H SPAM 11/1/09]New month . . . new.. (34)
Endless BSOD to Recovery Manager loop.. (0)
HELP!!! What do you think of this sys.. (25)
New Processor, Monitor will not turn .. (3)
Determining ip route and serial addre.. (8)
can u beat freecell # 1941? (11)
Dell 8300 Graphics Problems (1)
I have words with double underlines a.. (2)
Internet very slow since updating AVG.. (10)
My Pc wont start after i interupted D.. (0)
windows 7 retail and rtm (5)
New processor technical problem (0)
boot from CD-ROM in chipset via P4M80.. (2)
Powe Director v8 (0)
Windows Experience Index is screwed u.. (3)
Review My Build (6)
FAT32 to NTFS file system in Win2kpro (4)
Motherboards and my curse... (25)
2009 Build (4)
My 1st pc build (40)
Freezing During Music/Movies (1)
ext. sound card laptop to stereo syst.. (2)
Remote Desktop via SSH and error mess.. (2)


All times are GMT -4. The time now is 03:15 PM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28