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
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