Solved

interop.word

Posted on 2010-09-17
5
716 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

It is often necessary in this forum and others to illustrate Word fields as text with the field delimiters replaced with the curly brackets that the delimiters resemble when field codes are being displayed on the document. This means that the text c…
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
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 create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.

624 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