How to Send Enter key to MSWord Dialog Box

M

Matt Curreri

I'm trying to automate the creation of a MSWord document with C#;
however, when I start creating the MSWord document, I occassionly have a
MSWord dialog box displaying a warning of low memory and asking if I
would like to continue (Yes, No, Cancel).

Is there a way to send the "Enter" or mouse click to this MSWord Dialog
Box to invoke the "Yes" option, which will allow the MS Word to
continue?

I would appreciate any help... Matt
 
A

AA2e72E

The application object has a property DisplayAlerts that can be set to three
levels - 0 means no dialogues & assume the default button is clicked.
 

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