Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

interop.word

Posted on 2010-09-17
5
Medium Priority
?
721 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 2000 total points
ID: 33703600
0
 
LVL 1

Author Closing Comment

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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Lost Word File? Eagerly, need it back? Read ahead; this File Recovery guide is for you.
This Micro Tutorial well show you how to find and replace special characters in Microsoft Word. This is similar to carriage returns to convert columns of values from Microsoft Excel into comma separated lists.
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
Suggested Courses

824 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