Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting Word margins through OLE
Message
From
01/03/1999 16:03:02
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00192747
Message ID:
00192855
Views:
17
A useful technique for finding out this sort of information is to record a macro in Word that sets the margins. Then look at the code in that macro for the relevant command.

Also, look for a file called vbawrd8.hlp in your Windows\Help directory. If it's not there, rerun the Office installation, select Custom install (I think or reinstall missed components, maybe) and install the VBA for Word help. This help file has all the commands.

Translating the commands into VFP syntax can be something of a trick, but not too bad. Two (at least) members here have Word automation related information posted on their web sites. David Frankenbach and John Harvey. Oh, I think John Petersen does also.

>Can anyone tell me how to set the margins
>in a Word 97 document using OLE automation?
>
>Many thanks.
Previous
Reply
Map
View

Click here to load this message in the networking platform