Running Office apps unattended on a server is NOT supported by Microsoft. Some things you can suppress by setting Application.DisplayAlerts, but that won't take care of error messages. Word (and the other Office apps) were not designed with this scenario in mind.
There's an article in the Knowledge Base about dismissing Office dialog boxes that may be "hanging" an application. Basically, the workaround involves using SendKeys to mimic a user's actions after a Timer has elapsed. That's as close as you can get. -- -- Cindy
"Patrik" wrote:
[Quoted Text] > Hi > > When I try to open documents by word.application.documents.open(...) I some > times get error dialogs for different reasons. It could be margins or table > errors for example. The problem is that my code is running on the server and > not displayed to the user. I would like to open the documents and not display > any dialogboxes even if there are any document errors. > > Someone know how to accomplish this in code? > > Thanks, > Patrik >
|