Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error The RPC server is unavailable
Message
De
24/07/2000 17:38:44
 
 
À
24/07/2000 16:16:46
Victoria Mckee
Kansas City Life Insurance Co
Kansas City, Missouri, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00396236
Message ID:
00396369
Vues:
12
Hi Victoria,
>I had tried closing Word after use, but a message box pops up and say, "not done printing, close anyway?" This meant that the user either kept it open or closed before the printing was done.
>
>Do you have a suggestion on how I can tell when the Word printing has been completed so that I can close the app?

Ok, the solution is in this KB article: http://support.microsoft.com/support/kb/articles/Q241/9/42.ASP?LN=EN-US&SD=gn&FR=0

If it were myself doing this,after executing Words print method, I would implement a timer that fires every second with this code:
PROCEDURE Timer1_Timer()
  DoEvents()
  IF oWord.BackgroundPrintingStatus = 0
    This.enabled = .f.
    oWord.Quit()
    This.destroy()
  ENDIF
ENDPROC
This way, your program (and ultimately the user) doesnt have to wait until Word is through printing to continue.

Jon
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform