errors opening word documents

Y

Yet

I have a windows application, that opens word documents:
doc = wrd.Documents.Open(fullFileName)
word throws an exception when it tries to read one of the documents that
contains about 400 pages:
"There are too many spelling or grammatical errors in 13300022.doc to
continue displaying them.
To check the spelling and grammar of this document, choose Spelling and
Grammar from the Tools menu."

How can I make him skip this error?

other times an comException is thrown:
Call was rejected by callee. (Exception from HRESULT: 0x80010001
(RPC_E_CALL_REJECTED))
what does it mean? how can I go around it?
 
C

Cindy M.

Hi =?Utf-8?B?WWV0?=,

Well, as far as the message box being displayed you can try setting
Application.DisplayAlerts

to suppress messages. It doesn't work for all messages, but might suppress
this one.

You'll get this error if a document is typed in a different language than
the language used to format it, or if it contains lots of "non-proofable"
text, such as programming code.

The best solution, therefore, is to teach the users to format their
documents properly. In the "Language" formatting dialog box they can set
the language for selected text, and they can set "Do not check spelling or
grammar" to completely suppress the spell check.
I have a windows application, that opens word documents:
doc = wrd.Documents.Open(fullFileName)
word throws an exception when it tries to read one of the documents that
contains about 400 pages:
"There are too many spelling or grammatical errors in 13300022.doc to
continue displaying them.
To check the spelling and grammar of this document, choose Spelling and
Grammar from the Tools menu."

How can I make him skip this error?

other times an comException is thrown:
Call was rejected by callee. (Exception from HRESULT: 0x80010001
(RPC_E_CALL_REJECTED))
what does it mean? how can I go around it?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top