General information
Category:
COM/DCOM and OLE Automation
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only