H
Hammad
Hello,
I get the following error when I load a particular word document.
"an error occurred while loading 'thisdocument'"
The reason this occurs is some sort of conflict with the "normal.dot"
template and the template attached to the original document. If I load the
document using the /a command line switch, it loads the document w/o this
message. It seems that the word.application automation object always has the
"Normal.dot" template as part of its template collection.
The problem is, I am using the word object for an automated process and the
popping up of this dialog cannot occur because it halts the processing. I'm
wondering if there is a way to programatically not allow this to popup or
allow it to automatically select "yes" or "no" on the dialog itself as some
sort of option on the word.application object?
To me, this is not good. If Microsoft provides the ability to automate
Word, it should also provide a situation that allows the hiding of message
boxes so they don't pop up for automated processing. OpenDocument should
throw an exception if this situation occurs.
Thanks,
Hammad
I get the following error when I load a particular word document.
"an error occurred while loading 'thisdocument'"
The reason this occurs is some sort of conflict with the "normal.dot"
template and the template attached to the original document. If I load the
document using the /a command line switch, it loads the document w/o this
message. It seems that the word.application automation object always has the
"Normal.dot" template as part of its template collection.
The problem is, I am using the word object for an automated process and the
popping up of this dialog cannot occur because it halts the processing. I'm
wondering if there is a way to programatically not allow this to popup or
allow it to automatically select "yes" or "no" on the dialog itself as some
sort of option on the word.application object?
To me, this is not good. If Microsoft provides the ability to automate
Word, it should also provide a situation that allows the hiding of message
boxes so they don't pop up for automated processing. OpenDocument should
throw an exception if this situation occurs.
Thanks,
Hammad