Word PIA call to Documents.Open with 'false' for ConfirmOpen changes static option?

B

Bob Eaton

In a program I wrote that uses the Word PIA, I have a call to Documents.Open
as follows:

Word._Document wrdDoc = wrdApp.Documents.Open(ref oXmlFilename, ref oFalse,
....etc...);

Notice that for the 2nd parameter of the "Open" method, which is called
"ConfirmConversions", I pass a reference object which equals 'false' (i.e.
object oFalse = false;)

This is because I don't want the Convert File dialog showing up at this
point (because I know what the format/file type is).

However, when I subsequently open Word, the 'Tools', 'Options' dialog,
'General' tab, 'Confirm Conversion at Open' checkbox option--which was
previously set--has been reset!

Why should this happen? During the call to Open, I'm not asking it to change
the static option value, but rather just to open the given file without
bringing up the ConfirmConversion dialog?

Is there a way around this?

Thanks,

Bob
 
Top