Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to wait till word finishes?
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00724707
Message ID:
00725067
Views:
19
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform