>Cetin,
> thanks for advice, I look always but there are only examples to create a NEW document in a form. Can you send me a simple code how to open an existing Word document and show it in a form (without using a general fields).
> Thanks in advance, Boris
Boris,
Without any use (temporary cursor) of gen fields and opening in a VFP form rather than Word own window is rather complicated (if I ever could do it). Instead I use a oleboundcontrol bound to a gen field in a cursor :
create cursor tcHolder (wdoc g)
append blank
append general wdoc from myexistingdoc link
thisform.addobject("oWdocument","OleBoundControl")
with thisform.oWdocument
.controlsource="tcHolder.oWdoc"
.top = 1
.left = 1
.height = thisform.height - 2
.width = thisform.width - 2
.visible = .t.
endwith
Cetin