Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding an OLE container object to a form
Message
From
06/10/1999 14:46:50
 
 
To
06/10/1999 14:36:07
Becky Vidal
Heritage Information Systems, Inc.
Richmond, Virginia, United States
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00273310
Message ID:
00273313
Views:
42
>I am trying to add an OLE container object to a form and have the ability to change the documentfile property based on user selection. I have tried it two ways:
>
>1) Adding a OLE container control onto the form and setting the OLEClass, Linked and DocumentFile properties in the property page. This works fine, but I need to programmically change the documentfile property based on a selection from the user. The problem is the documentfile property is read-only. Can it be done this way?
>
>2) Adding the control using code: thisform.ADDOBJECT("ole2", "olecontrol", "word.document.6"). This statement alone does not work. I have read that you can add onto the statement, parameters (I assume the document file and the linked property) that are passed to the objects INIT event. But I am not sure how the INIT event is invoked and how I can create one with the LPARAMETER statement if the object is being created in code.
>
>Can anyone help?
>Becky

AFAIK, if you're building the above class visually, you should be able to place the parameters at the top of the init method.

HTH
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform