»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 04-09-2004, 08:35 PM   #1 (permalink)
Registered User
 
BITM@D's Avatar
 
Join Date: Oct 2001
Location: Adelaide, South Aust
Posts: 451
BITM@D is on a distinguished road
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 04-09-2004, 08:59 PM   #2 (permalink)
Registered User
 
VHockey86's Avatar
 
Join Date: Jan 2003
Location: New York
Posts: 1,588
VHockey86 is on a distinguished road
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; 04-09-2004 at 09:02 PM.
VHockey86 is offline   Reply With Quote
Old 04-09-2004, 09:04 PM   #3 (permalink)
Banned
 
Siliconjunkie's Avatar
 
Join Date: Feb 2003
Location: Houston, TX
Posts: 1,595
Siliconjunkie is on a distinguished road
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.
Siliconjunkie is offline   Reply With Quote
Old 04-09-2004, 09:09 PM   #4 (permalink)
Registered User
 
crouse's Avatar
 
Join Date: Jun 2002
Location: Iowa
Posts: 2,527
crouse is on a distinguished road
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.
__________________
The day Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners. --- Author Unknown.
crouse is offline   Reply With Quote
Old 04-09-2004, 09:10 PM   #5 (permalink)
Registered User
 
BITM@D's Avatar
 
Join Date: Oct 2001
Location: Adelaide, South Aust
Posts: 451
BITM@D is on a distinguished road
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?
__________________
Bill S.
Editor
BuickStreet.com
V8PC.com/web <-- logo comp
BITM@D is offline   Reply With Quote
Old 04-09-2004, 09:11 PM   #6 (permalink)
Banned
 
Siliconjunkie's Avatar
 
Join Date: Feb 2003
Location: Houston, TX
Posts: 1,595
Siliconjunkie is on a distinguished road
Send a message via AIM to Siliconjunkie
What about cutting and pasting it into Dreamweaver or similar?
Siliconjunkie is offline   Reply With Quote
Old 04-09-2004, 09:23 PM   #7 (permalink)
Registered User
 
VHockey86's Avatar
 
Join Date: Jan 2003
Location: New York
Posts: 1,588
VHockey86 is on a distinguished road
I tried pasting into dreamweaver but it just gave an error sayign it would be too large
VHockey86 is offline   Reply With Quote
Old 04-09-2004, 09:34 PM   #8 (permalink)
Registered User
 
jmichna's Avatar
 
Join Date: Oct 2001
Location: Chicagoland IL
Posts: 1,539
jmichna is on a distinguished road
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.
__________________
A man becomes rich not by having what he wants, but by wanting what he haves.
jmichna is offline   Reply With Quote
Old 04-09-2004, 09:54 PM   #9 (permalink)
Registered User
 
BITM@D's Avatar
 
Join Date: Oct 2001
Location: Adelaide, South Aust
Posts: 451
BITM@D is on a distinguished road
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.
__________________
Bill S.
Editor
BuickStreet.com
V8PC.com/web <-- logo comp
BITM@D is offline   Reply With Quote
Old 04-09-2004, 10:19 PM   #10 (permalink)
Registered User
 
VHockey86's Avatar
 
Join Date: Jan 2003
Location: New York
Posts: 1,588
VHockey86 is on a distinguished road
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




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 08:10 PM.