Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Problem with Word Paste...Maybe
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedProblem with Word Paste...Maybe

 Post Reply Post Reply
Author
mike823 View Drop Down
Newbie
Newbie


Joined: 25 May 2005
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote mike823 Quote  Post ReplyReply Direct Link To This Post Topic: Problem with Word Paste...Maybe
    Posted: 04 April 2006 at 8:43pm

Hi. 

 
have integrated the RTE successfully in an ASP application I am working on.  I have set this up to store the message from the textarea to a SQL Server 2000 database table.  I have encountered a strange problem when I paste from Word in some cases.  Here is my problem.  When I open a word document with a lot of formatting. i.e., tables, bolds, different fonts, font sizes etc... and use the Word Paste function in the RTE and try to save this info to a table, I sometimes get a page cannot be displayed error.  I have even tried doing Response.Write on my sql statement and Response.End before executing the SQL but it does not even get this far before throwing the error. It’s almost like something in the submission of the form is causing the error. Now, this does not happen all the time.  It seems that if I remove parts from the word document, such as one of the tables in the document, it saves fine.  I have also noticed that in some cases the font seems to grow larger as I scroll down the imported Word document.  For example.  The top of the pasted textarea looks identical to the Word document.  As I scroll down the textarea it appears that some of the font heading have somehow grown larger than what the Word Document displays.  I’m not sure if this is something with the way the document was formatted in Word or if there is some kind of problem with the Word Paste function.  If anyone has experienced this problem, and knows any info on what may be causing this please help.  I would not think it would be a problem with the way I am submitting my form in ASP but I am not 100% sure.  I am using post to submit the form.

 

Thanks!

 

Michael

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 05 April 2006 at 10:54am
You will probably find that the error is a 500 internet server error rather than a 404 error.

If you turn off friendly HTTP error messages in IE you will get an accurate error message on what the issue actually is.

However, my guess would be the size of your post. The ASP Response object can only handle 100Kb of data, when using Word it puts in loads of unwanted bloat into your document.

To be cut out all this unwanted bloat from word I would copy and paste from word to Notepad, then into the RTE, this will get rid of the bloat that word puts in.

Another alternative is to use OpenOffice from www.openoffice.org, as it is a much better office suit than MS Office, is compatible with MS Office Dcouments, much faster than Office, and best of all is completely free.

Since moving over to OpenOffice there is no way I'm ever using MS Office again.
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 05 April 2006 at 3:31pm
If you save the word doc as html first and then copy 'n paste from there, it cleans up a some of the bloat - still extremely bloated, but not quite as bad. MS uses it's own markup tags in either format.

Whenever I have to take content from a word dox, I save it as text and then reformat the text with html/css.

Lead me not into temptation... I know the short cut, follow me.
Back to Top
mike823 View Drop Down
Newbie
Newbie


Joined: 25 May 2005
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote mike823 Quote  Post ReplyReply Direct Link To This Post Posted: 06 April 2006 at 3:57pm

Hey!  Thanks for the replies.  I bet it’s with the post being over 100Kb of data.  I was thinking it had to be something with that but I wasn't aware of the limits on a post method.

 

Thanks!

 

Mike

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.