Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OLE Bound controls...
Message
From
22/02/2000 10:40:53
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
OLE Bound controls...
Miscellaneous
Thread ID:
00335388
Message ID:
00335388
Views:
46
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
Map
View

Click here to load this message in the networking platform