Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word automation
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Miscellaneous
Thread ID:
00706758
Message ID:
00706771
Views:
22
>In our application I use Word Automation. Our custumers use MS Word to create some letters. Sometimes it is possible the customer uses some pictures in the letters. I create the word application object, load a document, execute some actions, and at least show the document. Then the customers can modify the letters and do some extra actions.
>
>But when a document contains a picture, and the picture does not exist, Word generates a messagebox. Only this messagebox isn't active. To show this messagebox, the ms word task must be activated. Is there any solution to prevent this dialog? I couldn't find it in de documents.open methode of the word.application object.
>
>TIA,
>
>Sander

From memory it is the DisplayAlerts property of the Word object.
eg.
loWord = CREATEOBJECT("Word.Application")
loWord.DisplayAlerts = .F.
loWord.Documents.Open("MyDocName")
Cheers,
Jamie
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform