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 14:14:50
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01226792
Message ID:
01226921
Views:
22
>I have Word 2003 SP2 and the PrintOut parameters list and order didn't change from what you specified.
>
>The Word document was created from a mailmerge operation, so it doesn't have any sections. Does it contains the proper pagefication? I assume so, because loWord.ActiveDocument.ActiveWindow.Panes(1).Pages.Count give me the right number of pages.
>

Probably not. As far as I know the mailmerge creates sections having one page per section, and each page has the number 1. Try to insert page number into the header to see the real things.

And if you have sections instead of pages, then this should give you what you need:

?o.ActiveDocument.sections(3).Range.Select
wdPrintSelection = 1
?o.ActiveWindow.PrintOut(,,wdPrintSelection)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform