Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I do to call a word aplication....

Status
Not open for further replies.

bigdad

Programmer
Jul 17, 2001
34
VE
Hi I need to somebody helpme in this:

How can I do to call a word aplication from a VFP´s control(commandbuttom, whatever), I think that is with a Olecontrol but I´m not sure really

Somebody helpme please
Thank´s: Bigdad
 
Bigdad,

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.

Hope that helps,

Stewart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top