Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to print a given page in Word
Message
From
18/05/2007 14:14:50
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01226792
Message ID:
01226893
Views:
32
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
Map
View

Click here to load this message in the networking platform