>So I took the code right out of the VFP6 Programmers Guide to test how to insert a Word document into a form on the fly.
>
>frm1 = createobject("form")
>frm1.addobject("olb1","oleboundcontrol")
>frm1.olb1.ControlSource = "AliasName.FieldName"
>frm1.olb1.visible = .t.
>frm1.visible = .t.
>
>Through the debugger I can see that the form was created, it was enabled, and the OLE control was placed on the form with the proper control source. Following the same steps in the form designer, I can see the form and the Word doc that was embedded into the database. But any time I try to create these objects with the above code I cant see the form that it creates. Any ideas?
>
>Thanks
>Tom Welch
Tom,
Add a "read events" (and temporarily add a on key routine for "clear events" for and easy escape :) You wouldn't see much w/o setting height, width of olb1.
Cetin