Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to print a given page in Word
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01226792
Message ID:
01226796
Vues:
29
>I have a Word document open and I want to print, let say, the 3rd page. The VBA help is a lot of fun to consult to try to figure out how to do that (NOT!). I have the following code, but it doesn't work. All the document is printed out.
loWord.ActiveDocument.PrintOut (.F., .F., 3, "", "3", "3")
Any ideas how to print a given page in Word?
>
>TIA

Did you try to record the MAcro and review its VBA code?
Anyway, try:

wdPrintRangeOfPages=4
?o.ActiveDocument.PrintOut(,,wdPrintRangeOfPages,,,,,,"3")
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform