You firstly need to create an object reference to Word:
oWord = CREATEOBJECT("Word.Application"
You can then reference the variable oWord from your VFP CommandButton or whatever.
You can browse the Word Object Model by opening Word, type Alt-F11 (which brings up the VBA editor). Then press F2, which will bring up the object browser.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.