Group:  Microsoft Word ยป microsoft.public.word.oleinterop
Thread: Word dialog box problem

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

Word dialog box problem
Patrik 08.06.2006 07:57:02
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

RE: Word dialog box problem
Cindy Meister 17.06.2006 14:39:02
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
>

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net