Print Page | Close Window

Problem with Word Paste...Maybe

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Rich Text Editor (RTE)
Forum Description: Support forum for the Web Wiz Rich Text Editor (RTE).
URL: https://forums.webwiz.net/forum_posts.asp?TID=19151
Printed Date: 29 March 2026 at 5:17am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Problem with Word Paste...Maybe
Posted By: mike823
Subject: Problem with Word Paste...Maybe
Date 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




Replies:
Posted By: WebWiz-Bruce
Date 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.


Posted By: dpyers
Date 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.


Posted By: mike823
Date 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




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net