Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to print a given page in Word
Message
 
To
18/05/2007 11:28:35
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01226792
Message ID:
01226796
Views:
36
>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")
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform