General information
Category:
Forms & Form designer
Title:
OLE Bound controls...
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only