Description
Because of the architecture of OLE, you often cannot interact with an OLE object embedded in an OLE control within the Save and Close events. Trying to do so can generate a runtime error. The SaveObject event provides a way to interact with the embedded server when it saves its data without encountering reentrancy problems.
Usage
The data in an embedded object is stored as a blob in the control's ObjectData property. If you want to save an embedded object in a database or file when the server application saves the object, you can save it as a blob in the script for the control's SaveObject event.The SaveObject event is typically triggered when the embedded server saves the data in the OLE object, either automatically or at the user's request.
The OLE object must be embedded in the OLE control. The SaveObject event is not intended for use with linked objects.
For more information
Select the What's New button on the Help window and select New event.
|