Category Archive for: OLE Automation and VBA

Common OLE Container Control Methods

To manipulate embedded or linked objects, the OLE Container control provides the following methods, in addition to the properties already mentioned. Create Embed This method creates an embedded object. It has the following syntax: CreateEmbed sourcedoc, class The sourcedoc argument is the filename of a document used as a template for the embedded object. To create a…

Read More →

Common OLE Container Control Properties

This section summarizes the properties and methods used in creating embedded and linked documents at runtime, The same properties are set by Visual Basic when the object is inserted at design time with any of the methods already described. Class This property identifies the type of object held by the OLE Container control. To see this, run the…

Read More →

The OLE Control’s Shortcut Menu

Another way to embed objects in an OLE Container control is through the control’s shortcut menu. Right-click an OLE Container control at design time to display the shortcut menu shown. Use this menu to insert a new object or to edit the embedded document if the control already contains an object. To embed (or link) another object in an…

Read More →

The OLE Container Control

Now, we’ll look at how you can exploit’the OLE technology from within your Visual Basic applications. To incorporate OLE functionality into your VB applications, you need the OLE Container control, which allows you to insert objects from other applications into your program. You can place only one object in the Container control at a time, but you can have…

Read More →

OLE Terminology

At this point.we would normally look at a few examples that demonstrate the items discussed so far, but before doing so, we must look at some OLE terms that we’ll be using in this chapter. OLE has its own terminology. You may not quite understand all the terms presented next, but they will be used later with examples.…

Read More →

What Is OLE?

In the past, software development tools were uniform throughout, allowing little, if any, variation and component exchange with other tools. Programming environments were thought of as islands, somewhat isolated from other applications. Programmers used structured programming techniques to analyze programming problems in terms of procedures and then implement those procedures. However, with the introduction of OLE, software development…

Read More →

OLE Automation and VBA

Visual Basic is a highly successful object-oriented language because it manages to hide many of the details of using and manipulating objects. The elements you use to build a user interface are objects, and you manipulate them via their properties and methods. By now, you should be quite familiar with Visual Basic’s object nature. This chapter explores two more…

Read More →

Back to Top