Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Word automation
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Divers
Thread ID:
00706758
Message ID:
00706771
Vues:
23
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform