merwin

merwin

  • NA
  • 1
  • 0

Need help with .NET automation of Word

Dec 17 2004 2:42 PM
Hi, I was hoping someone could help me out with something that is driving me batty. I am working with .NET 2003 and Word 2003 and I am building a very large document by cutting and pasting lots of smaller Word/RTF documents together that are being built from a crystal report (ExportFormatType.WordForWindows). During this process after I have pasted about 30 of these things into the master document, I get the following msg from Word: "There are too may spelling or grammatical errors in Document2 to continue displaying them. The check the spelling and grammer of this document, choose Spelling and Grammer from the Tools Menu." I have tried putting in the following currentDoc.Application.Options.SuggestSpellingCorrections = false; currentDoc.Application.Options.CheckGrammarAsYouType = false; currentDoc.Application.Options.CheckSpellingAsYouType = false; currentDoc.Application.Options.CheckGrammarWithSpelling = false; currentDoc.Application.DisplayAlerts = WdAlertLevel.wdAlertsNone; but I am still getting this message. What I am printing should not be spell checked. How do I prevent word from attempting to spell check this document completely? Thank you in advance, Mark