Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing File in Word
Message
From
26/06/2001 13:55:39
 
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00523610
Message ID:
00523694
Views:
8
>I have the following code which opens the document but need to know what commands to use to print the document.
>WITH loWord
> cFile = CURDIR()+"\Reports\DonateBlank.doc"
> .Documents.Open(cFile)
>ENDWITH
>

To print the whole document, you just need:

loWord.ActiveDocument.PrintOut()

There are a ton of parameters to that method that let you modify exactly what's printed or how it's printed or whatever.

Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform