Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting page orientation in Word Document
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00670860
Message ID:
00670923
Views:
23
Try this:

oWord = CreateObject("Word.Application")
oWord.Documents.Open("YourDoc.DOC")
With oWord.ActiveDocument.PageSetup
.LineNumbering.Active = .f.
.Orientation = 1 && wdOrientLandscape
EndWith

You can record a macro in word & then transform it to VFP


Boris
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform