DocumentBeforeClose event handler and custom dialog issue

W

Walter Leinert

Hi,

i'm automating word (Office 2003) by a custom c# library. Since i want to
intercept close and save events i'm hooking the Application
DocumentBeforeClose and -Save events. In the DocumentBeforeSave event handler
i'm checking the saveAsUI parameter to display a custom dialog
(Application.Dialogs[OfficeApp.WdWordDialog.wdDialogFileSaveAs]). But for
replacing the builtin yesnocancel-Dialog which is showed in when closing a
modified document, i did not find a corresponding builtin word dialog. When
using a windows forms message box i get the effect of an eraser over the word
document window may be due the blocked internal event processing in word (the
BeforeClose and BeforeSave events are handled in dedicated threads).
Who can tell me who to use an word/office yesnocancel dialog which does not
block the word-internal event processing?

Regards, Walter
 

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