220 likes | 242 Views
Object Linking and Embedding. OLE definition add other information to documents copy. Object Linking and Embedding. Technology create objects that can be linked or embedded in other documents server/client relationship. OLE. Windows accessory
E N D
Object Linking and Embedding • OLE • definition • add other information to documents • copy
Object Linking and Embedding • Technology • create objects that can be linked or embedded in other documents • server/client relationship
OLE • Windows accessory • create applications that are stored in Window application document • program creates a object called a server application • the object that is stored is called the client document
Server Application • program that creates the object • server fulfills requests from clients for serves • this model is also used for databases, Internet and any distributed programming
Client Application • Client is typically where the object is stored • the client asks or receives the services (data or processes) • in distributed model the client and server might reside on the same computer or across the network
OLE • its like having the program that helped create the object right there in the document where you stored it! • when that object is doubled clicked, the application that created the object is loaded into the application for editing
OLE in Word • The word processor is the client and the word art , spreadsheet, database is the server
Choices • There are a number of ways you can combine information • linking • embedding • copying
Linking • Embedding data is different from linking • When data is linked, an image of the data appears in one document, but the data actually resides in another document. • Paste Special->Linked
Linking Advantage • the user can update the linked data by opening up the original application or by using the link • the change in one document is immediately reflected in another document, so updating multiple destination documents are easy
Linking Disadvantage • The links must be available with the same file name and path as when the link was created. Only documents on the local computer or workgroup will be updated
Embedding • When data is embedded, the data actually exists in the original form within another document. The person receiving the document can open and edit the embedded data if they have the application that created it. • Insert Object
Advantages of Embedding • Advantages to embedding is that “users” can see more data, analyze it in ways different from how it was originally intended • You do not need to worry about broken links, renaming files or sending linked files with the document because it is all self-contained.
Disadvantages • Each file containing the embedded data must be updated individually • Disadvantage - files can become very large • For web pages - don’t embed but put a hyperlink in the main document- otherwise takes too long to download
Copy • The source data is converted to text or a graphic and inserted into the Window’s application • advantage - the source data takes up less storage than embedded data. There is no link- the information appears as a snapshot. The source application does not have to be available
Copy Disadvantage • The source data cannot be edited or updated; it must be re-created when a change to the source occurs.
Example of Embedding • Suppose a spreadsheet is an active window, you can click the COPY button on the Toolbar to place the chart on the Clipboard. Then after making a WP document active, you can click the PASTE button on the Toolbar to paste the chart into the wp document. (You can also use the paste and copy command on the Edit menu)
Embedding • What you have done is placed an exact copy of what was in the clipboard into your wp document. Right now there exists two copies and they are independent of one another. • If you change the information in either one the change is only reflected in the edited version.
Linking • You can also use the Insert menu to insert “objects”. • when you use the Insert menu, you have linked these two applications, one becomes the server and the other the client • So if you make changes in one document, they will be reflected in the other