Removing all grammer and spelling checks from a document

H

hayrob

When a User types in a document, he is free to type what he likes, and
therefore can make spelling and grammatical mistakes. However when he saves
and closes the document, I handle the save process programically. In
particular, I save the document as WordXml, but I want to ensure that none
of the WordXml grammer and spelling tags are saved with the document.
How do I ensure that they are removed from the document before it is saved
as a WordXml document?
 
P

Peter Huang [MSFT]

Hi

Based on my research, this is the Word's Buildin mechanism, except you
disabling the Spelling and Check before you start to type in.
Also we can ignore the spelling error via the dialog, but word's Object
Modal only provided a method to pop up the dialog but not ignore the
spelling and check.

So it is hard to removing the spelling error if you have enabled it
programmatically.
As a workaround, you may either disable the spelling check at first.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
H

hayrob

Peter

Thanks for your response which is what I feared might be the case.
I've implemented a method to remove all proofing tags from the WordXml
manually - seems to be working.

By the way, the reason this was a problem for me was that the proofing tags
spanned sections. Hence, although the document is valid XML, it seems to
breach the "spirit" of XML eg
<sect>
<proof start/>
<sect/>
<sect>
<proof end/>
</sect>

Thanks again for your help.
 
P

Peter Huang [MSFT]

Hi

I am glad the you have found a solution for your scenario.
If you still have any concern, please feel free to post here.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top