0% found this document useful (0 votes)
19 views1 page

OLE Container Control

OLE allows exchanging data between applications. An OLE container control in Visual Basic can embed or link objects at design or runtime. To embed a Word document, select it in the insert object dialog after placing the OLE control.

Uploaded by

rehna
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views1 page

OLE Container Control

OLE allows exchanging data between applications. An OLE container control in Visual Basic can embed or link objects at design or runtime. To embed a Word document, select it in the insert object dialog after placing the OLE control.

Uploaded by

rehna
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

What is OLE?

OLE (Object Linking and Embedding) is a means to interchange data between applications.

OLE Container Control


In Visual Basic, you can embed or link an object using OLE container control. OLE control is one of
the standard set of controls. This allows you to either embed or link an object either at design time
or at run time thorough its properties and methods.

To create OLE Container control:

1. Select OLE control in Toolbox.


2. Place the control on the form with the required size.
3. As soon as OLE control is placed on the form, Insert Object Dialog is displayed to allow you to
either embed or link an object into OLE Container.
4. The available options in insert dialog are - Create New, where you select an Object Type and
create an object using the appropriate application, or Create From File, where you can create an
object by selecting a file from file system.

Eg. To embed a word document into OLE Container control:

1. In Insert Object Dialog box select Create From File radio button.
2. Click on Browse button and select a document file .
3. Click on Ok
4. An object is embedded into OLE Container control and a part of document is displayed.
5. Run the project using F5.
6. Double click on OLE Container control. This action will invoke MS-Word and run it in OLE
Container control. When OLE Server runs in OLE Client, it is called as In-Place Activation.
7. Make necessary changes using MS-Word.
8. Press ESC key to come out of In-Place activation.

Word, excel, powerpoint or any applications can be linked and embedded using this OLE Control in
visual Basic.

You might also like