Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printer control in Word from VFP
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00496932
Message ID:
00497060
Vues:
11
I don't know if you can just bring up the print dialog and stop right there for the user to choose or not.

You can set the printer for output by doing the following (assuming oWord is a Word.Application object):

oWord.ActivePrinter="HP LaserJet II" &&or whatever

I don't have an answer for the "waiting to quit until printing is done" question. Maybe there's a property of the Word.Application object that contains the current print status or some such. Perhaps someone else will jump in on that one.

--Brad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform