Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to wait till word finishes?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00724707
Message ID:
00725067
Vues:
20
Vlad thanks for the reply.

As far as my assumption is concerned if I place a wait window nowait after the Update it consistently works! Otherwise Word throws an exception "The instruction at 0x.... referenced memory at 0x... The memory could not be read". Now as this is not a Fox error I didn't think I could trap it - is that correct?

>Hi!
>
>> ... so I'm assuming that my code is trying to continue before the Update() has finished.
>
>First of all, I would get rid of asumption here and assure that it is really continue executing befire Update() finished.
>
>Also, there are a couple of background-processing things in MS Word (like file saving and printing in background) that you can turn off using certain properties.
>
>You can use as a workaround following: just trap for that error and do several attempts till you get desired result.
>
>Also, (just for luck ;-) try to play with _VFP.AutoYield property.
Caroline
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform