我正在嘗試使用C#和OLE從訪問數據庫執行自動xml導出。除了沒有用戶介入的情況下,所有的工作都很完美,除非顯示啓動窗體並且不會關閉。 這裏是我到目前爲止做: objAccess = CreateObject("Access.Application");
objAccess.OpenCurrentDatabase("C:\\MYDB.mdb", true); //true = open in e
下面的代碼段示出了插入表對話框: Dialog d = WordApp.Dialogs[WdWordDialog.wdDialogTableInsertTable];
int result = d.Show(ref missing);
if (result == -1) // if user pressed OK
{
d.Execute();
}
的問題是,該對話框不響應到鼠