SunQuest
           ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old September 14th, 2004, 12:58 AM
jwchesley jwchesley is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 2 jwchesley User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
large (200k) html file with nested tables does not load into MS Word

I'm using standard cfcontent disposition headers (ie:"application/vnd.ms-word") to create a large web page to send to Word, but the page (which loads fine in html) either does not load at all in Word, or, it takes Much too long (minutes) to load. I have tried:
- saving the file and loading from disc
- stripping out generated javascript
- removing headers and footers
- testing the resulting html for properly formed tables and such
- bypassing the fusebox stucture
- stripping out hidden tags
- stripping out whitespace, tabs and CRs
.. got it down to about 150k, but...
Does anyone have any experience in this? I'm reusing existing code, so I'm stuck with the level of table nesting (yeah, yeah, I know, use stylesheets for presentation) and with the amount of data. This is a composite report for printing and saving, which explains the size. I really don't want to rewrite a dozen or more existing reports if this problem is not just because of the size and can be resolved by setting a param. At least I'd like to know what the limits are if I have to work around limits.
Thanks for sharing any experience you may have.
- jack

Reply With Quote
  #2  
Old September 14th, 2004, 07:08 AM
Ebot's Avatar
Ebot Ebot is offline
Meatball Surgeon
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2004
Location: Elbow deep in code
Posts: 1,156 Ebot User rank is Brigadier General (60000 - 70000 Reputation Level)Ebot User rank is Brigadier General (60000 - 70000 Reputation Level)Ebot User rank is Brigadier General (60000 - 70000 Reputation Level)Ebot User rank is Brigadier General (60000 - 70000 Reputation Level)Ebot User rank is Brigadier General (60000 - 70000 Reputation Level)Ebot User rank is Brigadier General (60000 - 70000 Reputation Level)Ebot User rank is Brigadier General (60000 - 70000 Reputation Level)Ebot User rank is Brigadier General (60000 - 70000 Reputation Level)Ebot User rank is Brigadier General (60000 - 70000 Reputation Level)Ebot User rank is Brigadier General (60000 - 70000 Reputation Level)Ebot User rank is Brigadier General (60000 - 70000 Reputation Level)Ebot User rank is Brigadier General (60000 - 70000 Reputation Level)Ebot User rank is Brigadier General (60000 - 70000 Reputation Level)  Folding Points: 20724 Folding Title: Starter FolderFolding Points: 20724 Folding Title: Starter Folder
Time spent in forums: 1 Week 4 Days 1 h 40 m 15 sec
Reputation Power: 684
Are you creating any objects in your table? I have found that if you try to open up a document with a lot of inputs, textareas, etc will take a very long time for it to open. I would suggest that you rem out the cfcontent tag and see if you recieve any errors.

Reply With Quote
  #3  
Old September 14th, 2004, 11:28 AM
jwchesley jwchesley is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 2 jwchesley User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Smile well said Ebot..

No there were no errors or malformed HTML when viewed (without the cfcontent tag) as HTML, that was why it was sooooo annoying.

Solution...
I beat it to death and the final answer was indeed that the existing templates that I was importing had form tags and input tags in them... When they displayed, they looked nice, but it KILLED Word to try to understand them. I could hear a lot of disk thrashing as Word needed way more memory than the 256meg on the machine. So, the result was to go into all the templates and conditionally comment out all the >FORM and >INPUT tags when I needed to import them for printing.. Time went from several minutes (if ever) back to a few seconds as it should have been.

Thanks, Kudos to Ebot, right on the money!
- jack

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > large (200k) html file with nested tables does not load into MS Word


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway