Close InsertMergeField dialog

T

Tam

I has written a program (use word interop) that can let user to choose a
datasource file, then open the WORD and bind data to merge fields
automatically, however, if InsertMergeField Dialog was opened, when user
switch to other datasource, the error will show like the following:
UnHandled Exception:Call was rejected by callee. (Exception from HRESULT:
0x80010001 (RPC_E_CALL_REJECTED))

How can I use word interop to close the insert merge field dialog first ?
Because this dialog was opened by user. I only find the 'Dialog' methods have
'Show' and 'Display', can not find the 'Close' method.
 

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