210 likes | 274 Views
OLE. Copying Embedding Linking. OLE. Compound Document Server Application (Source) Provides the data Client Application (Destination) Contains the object. Copying. Use when you do not want to update data. Data must be replaced to be updated.
E N D
OLE Copying Embedding Linking
OLE • Compound Document • Server Application (Source) • Provides the data • Client Application (Destination) • Contains the object
Copying • Use when you do not want to update data. • Data must be replaced to be updated. • From Server Document: Edit/Select All/Copy • From Client Document: Edit/Paste
Advantages of Copying • Data does not change when other parts of document update. • Less memory and storage required to use or save the document. • Data, such as bit maps, may be editable without having the original server appl available.
Disadvantages of Copying • Pictures may print at lower resolution if copied as bit map. • Updating data requires redoing each copy and paste of data. • Copied data cannot be edited using the functionality of the original server application that created the document.
Embedding • Use when you have only a few client documents that may need updating, and you want to include the server data (an embedded object) as part of the document.
Using Paste. . . Copy or Embed? • Paste may result in selection being copied or embedded. • When you paste to transfer the same type of data, inserts without embedding. Otherwise, if both server and client use OLE and a different type of data is being pasted, Paste will embed the object.
Advantages of Embedding • Client document and server data are stored as a single file; you do not have to maintain links, path names, and server files. • Server data is saved as part of the client document. (cont)
Advantages of Embedding (cont) • You can stay in the client document and use the server appl.
Disadvantages of Embedding • Documents containing embedded objects are larger since they contain both client and server data. • Must edit object on computer having same application software that created the object. (cont)
Disadvantages of Embedding (cont) • Each client document must be updated individually.
Linking • Use when you need to update one original in the server and have the changes cascade into multiple client documents.
Establishing a Link • Use Copy-Paste Special to establish a link. • Use Insert/Object command. Choose link. (cont)
Establishing a Link (cont) • Paste Special allows you to Paste an Excel chart into document (embeds), Paste an Excel chart as a pic file, requiring less space but less editing potential, or Paste a link
Advantages of Linking • Less memory is required than for embedded objects. • Many client documents can be updated by changing one server document. • Older applications that cannot embed objects can still link data.
Disadvantages of Linking • Links between the server and client may be broken if the server file names or paths change or are deleted. • User of the client document must have the same type of server application in order to edit the linked data.
Scrap(Scrap is an object that Windows XP creates when you drag all or part of a file onto the desktop.) • You can also insert objects into a document by creating “Scrap Objects” and placing them on the desktop. • Stored in a file just like the original object from which created • Can consist of text, a graphic image, a sound clip, or other data • To insert scrap into a document, open the document and then drag the scrap from the desktop (or other location) into the document.
Using OLE in Productivity Software • If working with Excel or Word, you can use the Object option on the Insert menu to create an object from a file or insert and create a new object type • This approach, though, uses the entire contents of the file
If the application supports OLE 2.0, you can drag and drop (while holding Ctrl key to copy) an object among applications • Embeds the object (no option for linking) • Or use copy/paste • Gives choices for data type
Link Tracing • When you create a shortcut to an object, XP stores the full path to that object in the shortcut file. • If you change the name of the object to which the shortcut points, or if you move the object, the shortcut still works.
In each case XP updates the full path so the shortcut still points to the same object. • Uses the object’s name, type, and modification date and time to locate the object • This process of “Link Tracing” uses OLE technology