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:
01226869
Vues:
31
I get this code when I record a macro:
Application.PrintOut FileName:="", Range:=wdPrintRangeOfPages, Item:= _
        wdPrintDocumentContent, Copies:=1, Pages:="3", PageType:=wdPrintAllPages, _
         ManualDuplexPrint:=False, Collate:=True, Background:=True, PrintToFile:= _
        False, PrintZoomColumn:=0, PrintZoomRow:=0, PrintZoomPaperWidth:=0, _
        PrintZoomPaperHeight:=0
I tried your code, but it still print out the whole document.

>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