Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing a Word Document
Message
 
À
09/08/2000 17:38:02
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00402842
Message ID:
00403095
Vues:
20
>oWord=CREATE("Word.Application")
>oDoc=oWord.Documents.Open("c:\my documents\test.doc")
>oDoc.Printout()
>oWord.Quit(0)
>
>I had to "*" out the "oWord.Quit(0)" to get it to actually print.
>
>Howcome?

You have to add the following so that word doesn't quit before printing:

oWord.Options.PrintBackGround = .F. && don't close word until done printing

Alex
Low-carb diet not working? Try the Low-food diet instead!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform