Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checking BackGroundPrintingStatus
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00397137
Message ID:
00397333
Vues:
11
>>>I finally realized the reason I wasn't getting my mailmerge document to print is that I was "quitting" word too soon. What is the best way to keep checking oWord.BackGroundPrintingStatus? I tried the following code:
>>
>>Instead of polling BackGroundPrintingStatus, you can just turn Background printing off before you make the print call, and your print function will be synchronous. You can then turn BackgroundPrinting back on when the printing is finished.
>
>Are there any ramifications I should consider prior to doing this? I am basically looping through a bunch of records and then using the find .. replace method of word automation for each record. When I am done looping through all of the records I want to go ahead and close word and exit the form.
>
>Prior to your post I went ahead and followed Garrett's advice and put a timer on the form. Do you see any advantage of one over the other?

It depends on if you want the user to be able to di stuff in your app while the doc is printing. My method avoids polling and timers, but the timer method allows your app to do stuff while Word is busy.
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform