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.
>First keep in mind that VFP needs to follow the command syntax exactly; it does not allow to do it like in VBA Macro where the parameters order is not important. Secondly, syntax for some commands may be extended in the subsequent Word versions.
>
>I gave you the line that works for me in the Word "my" version 2002 SP3, which is:
>*-----------------------------------------
>*PrintOut method as it applies to the Application, Document, and Window objects.
>*Prints all or part of the specified document.
>
>expression.PrintOut(Background, Append, Range, OutputFileName, From, To, Item, Copies, Pages, PageType, PrintToFile, Collate, FileName, ActivePrinterMacGX, ManualDuplexPrint, PrintZoomColumn, PrintZoomRow, PrintZoomPaperWidth, PrintZoomPaperHeight)
>*--------------------------------------------------------
>
>Please, review your Word Help, and try to follow its printout() syntax.
>
>Other than that, are you sure that your document contains the proper pagefication, does not have sections with their own page numerations, etc?
>
>if you wish, sent your document to me (or any other test document that you cannot print as you wish). I will see whether I can print it correctly.
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