Solved

interop.word

Posted on 2010-09-17
5
704 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
Comment Utility
take a look if this can help you:
http://www.vbforums.com/showthread.php?t=359879
0
 

Author Comment

by:Alyanto
Comment Utility
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
Comment Utility
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
Comment Utility
0
 

Author Closing Comment

by:Alyanto
Comment Utility
The right answer, thank you
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
The Selection object is designed for user interaction. It has a Range property, so it can be used in most places that a Range object can. Recorded macros must use the Selection because they are simply copying what the user is doing. A Range prope…
In this video, we show how to convert an image-only PDF file into a PDF Searchable Image file, that is, a file with both the image (typically from scanning) and text, which is created in an automated fashion with Optical Character Recognition (OCR) …
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …

763 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

7 Experts available now in Live!

Get 1:1 Help Now