How to ensure MsWord dialog boxes come to front when using Word via Automation
Posted on 2004-11-03
I am performing mail merges from Word XP controlled from Delphi using TwordApplication. Some of the word templates have dialog boxes to prompt the user for additional information during the merge. I have set wd1.visible := true, however on some occasions the word dialog goes behind the Delphi application, the user is not aware that word is waiting for his input and after a long wait the user closes the application in task manager.
How do I ensure that the dialog always is on top?
Thanks in anticipation.