1 / 21

OLE

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.

laceyd
Télécharger la présentation

OLE

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. OLE Copying Embedding Linking

  2. OLE • Compound Document • Server Application (Source) • Provides the data • Client Application (Destination) • Contains the object

  3. 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

  4. 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.

  5. 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.

  6. 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.

  7. 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.

  8. 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)

  9. Advantages of Embedding (cont) • You can stay in the client document and use the server appl.

  10. 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)

  11. Disadvantages of Embedding (cont) • Each client document must be updated individually.

  12. Linking • Use when you need to update one original in the server and have the changes cascade into multiple client documents.

  13. Establishing a Link • Use Copy-Paste Special to establish a link. • Use Insert/Object command. Choose link. (cont)

  14. 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

  15. 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.

  16. 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.

  17. 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.

  18. 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

  19. 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

  20. 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.

  21. 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

More Related