Solved

interop.word

Posted on 2010-09-17
5
705 Views
Last Modified: 2012-05-10
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
Comment
Question by:Alyanto
  • 2
  • 2
5 Comments
 
LVL 14

Expert Comment

by:Daniel Junges
ID: 33701852
take a look if this can help you:
http://www.vbforums.com/showthread.php?t=359879
0
 
LVL 1

Author Comment

by:Alyanto
ID: 33702331
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
 
LVL 17

Expert Comment

by:Zhaolai
ID: 33703528
After creating a word document, add the following lines, like this:

Dim myNewDoc as New Document
myNewDoc.GrammarChecked = True
myNewDoc.SpellingChecked = True
0
 
LVL 17

Accepted Solution

by:
Zhaolai earned 500 total points
ID: 33703600
0
 
LVL 1

Author Closing Comment

by:Alyanto
ID: 33714916
The right answer, thank you
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I would like to show you some basics you can do with Mailings in MS Word. It´s quite handy feature you can use for creating envelopes, labels, personalized letters etc. First question could be what is this feature good for? Mailing can really he…
Shortcuts in Word Just the other day I had a training for Microsoft and they wanted me to show how well the new Windows and Office behaved on a touch device, which by the way is great, but it was only then that I realized that using keyboard shortc…
This video shows the viewer how to set up and create Footnotes in their document. Click on the References tab: Select "Insert Footnote": Type in desired text:
Office 365 is currently available in five editions. Three of them are for business use: Office 365 Business Essentials, Office 365 Business, and Office 365 Business Premium. Two of them are for home/personal use: Office 365 Home and Office 365 Perso…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

28 Experts available now in Live!

Get 1:1 Help Now