R
Roel
Hi,
I'm automating Word from C++. I use #import to get COM wrappers for
the Office OM. I open my document like this:
m_WordApplication->Documents->Open(&filename, &false_, &false_,
&false_);
(m_WordApplication is a Word::_ApplicationPtr).
The 'false' parameters are to prevent dialogs from showing when
somethine is wrong. In most cases, this code runs fine. However, when
I try to open a document that was open when Word crashed before, I get
a dialog asking me if I want to recover the document or not. I need to
run this code on a server, and need to prevent at all costs that
dialogs of any kind ever show up. I'd much rather have the document
open fail and give me a way to detect that. Is this possible? If so,
how? Thanks.
cheers,
roel
I'm automating Word from C++. I use #import to get COM wrappers for
the Office OM. I open my document like this:
m_WordApplication->Documents->Open(&filename, &false_, &false_,
&false_);
(m_WordApplication is a Word::_ApplicationPtr).
The 'false' parameters are to prevent dialogs from showing when
somethine is wrong. In most cases, this code runs fine. However, when
I try to open a document that was open when Word crashed before, I get
a dialog asking me if I want to recover the document or not. I need to
run this code on a server, and need to prevent at all costs that
dialogs of any kind ever show up. I'd much rather have the document
open fail and give me a way to detect that. Is this possible? If so,
how? Thanks.
cheers,
roel