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
 
B

Barb Reinhardt

Might you have worked in Mesa AZ in the mid 80's in a manufacturing facility
on graveyard shift? If so, contact me at (e-mail address removed)

Barb Reinhardt
 

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