[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 723
  • Last Modified:

interop.word

I have been working on an application that produces word documents in code and that has proved straight forward.  I have come across a problem relating to the spell checker and grammar checker.  On some very large documents I get a modal window that tells me that there are so many grammar errors that word can no longer display them.  The user’s instance of word is hidden so the user cannot interact with the prompt.  As a temporary solution the grammar and spellchecker have been turned off until I find a permanent solution.

Is there a means to turn these features off via interop?
0
Alyanto
Asked:
Alyanto
  • 2
  • 2
1 Solution
 
Daniel JungesCommented:
take a look if this can help you:
http://www.vbforums.com/showthread.php?t=359879
0
 
AlyantoAuthor Commented:
No note really.  My goal is to turn off words spell and grammar checker whilst the document is created.  I don't wnat to check the document.  
in Psuedo
Open an instance of word
 turn off spell checker
 turn off grammar checker
 create a document
  Do until end of written text
    write text
  Loop
 save document to temp
attach document to email
 send email
 turn on spell checker
 turn on grammar checker
 Dispose of the instance of word

0
 
ZhaolaiCommented:
After creating a word document, add the following lines, like this:

Dim myNewDoc as New Document
myNewDoc.GrammarChecked = True
myNewDoc.SpellingChecked = True
0
 
ZhaolaiCommented:
0
 
AlyantoAuthor Commented:
The right answer, thank you
0

Featured Post

Learn to develop an Android App

Want to increase your earning potential in 2018? Pad your resume with app building experience. Learn how with this hands-on course.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now