Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
OLE Bound controls...
Message
De
24/02/2000 02:10:06
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
22/02/2000 10:40:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00335388
Message ID:
00336603
Vues:
19
>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform