>How could I call/open a MS Word document in VFP5?
> I would like user to just by a click of a button, then VFP will open
> the document in Word environment for editing.
> Pls advise, thanks.
Alvin,
Take a look at KB\FAQ\Win32Api section "Interfacing word using wordbasic" and in files\classes section "Mailmerging to word". Other than that here is how you would open an existing word doc :
oWord = createobject("word.application")
with oWord
.documents.open(cFileName)
.visible = .t.
endwith
oWord = createobject("word.basic")
with oWord
.fileopen(cFileName)
.appshow
endwith
Cetin