>>>frm1.olb1.visible = .t.
>>>frm1.visible = .t.
>I lost any and all signs of the form and of course the OLE object. It's of course like it never existed. Where did my OLE go?
>
>Any thoughts?
>Tom Welch
>'They're coming to take me away...HaHa!'
>
>Now that I'm back, I have successfully managed to create the doc on the fly. But of course- a new problem has arisen. The document is a full page doc and the only thing I see is like a 1*1.5" area at the top left of the form. I tried playing with AutoSize with no luck...
>
>Tom
Tom,
Seems like you created a few threads for the same question. I already noted that you should set height, width of olb1 to "see" something. Make test code :
on key label "f2" clear events
frm1 = createobject("form")
with frm1
.Height = 400
.Width = 600
.addobject("olb1","oleboundcontrol")
with .olb1
.ControlSource = "Appgen.myPics"
.Height = frm1.height
.Width = frm1.width
.visible = .t.
endwith
.visible = .t.
endwith
read events
Cetin