home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / private / mpc93mar.zip / OLE.DAT < prev    next >
Text File  |  1993-02-17  |  5KB  |  107 lines

  1.  
  2.      Object Linking and Embedding - An Explanation [from MICROSOFT]
  3.  
  4.      What is OLE and how can I use it?
  5.  
  6.      Windows 3.1 offers true Object Linking and Embedding (OLE). With OLE,
  7.      you can create a drawing, sound file, or other object in an application
  8.      such as Paintbrush or Sound Recorder, and then insert (link or embed)
  9.      it into another file. For example, suppose you are working on a Write
  10.      document in which you have embedded a drawing. To make changes to the
  11.      drawing, you select it and open Paintbrush from within the Write
  12.      document. The drawing is updated automatically. You don't have to
  13.      remember where the drawing is; the Windows 3.1 OLE feature finds it
  14.      for you.
  15.  
  16.      Embed means that a complete object (file, drawing, etc.) is inserted
  17.      in a primary document. To edit the embedded object, you just
  18.      double-click the object to launch the related program. Embedding a
  19.      file makes it easier to keep track of in relation to your primary
  20.      document, because it only exists as a file within your primary
  21.      document. For example, if you have a Write file with a Paintbrush
  22.      graphic embedded in it, you donÆt need to have the Paintbrush file on
  23.      your hard disk; you can edit it within Write.
  24.  
  25.      Link means that your primary document contains only pointers to an
  26.      external file that appears in the primary document. Double-clicking a
  27.      linked document causes Windows to launch the related program and look
  28.      for the file that is linked to your primary document. Although with
  29.      linking you have the disadvantage of having to maintain separate
  30.      files, you gain the advantage of being able to automatically update
  31.      multiple files when you update a linked file (all files that contain
  32.      the link are updated). For example, if you have a Paintbrush graphic
  33.      linked to three Write files and one Microsoft Excel file, when you
  34.      change anything in the Paintbrush file, it automatically gets updated
  35.      in the Write and Excel files.
  36.  
  37.      OLE is now available in Windows Paintbrush, Write, Cardfile, and Sound
  38.      Recorder, allowing you to transfer and share information between these
  39.      programs in a powerful new way.
  40.  
  41.      Applications that provide objects are called server or source
  42.      applications. Those that accept objects are called client or
  43.      destination applications.
  44.  
  45.      To practice embedding an object into another programs file, do the
  46.      following:
  47.  
  48.      a. From the Accessories group, double-click the Write icon.
  49.  
  50.      b. Choose Insert Object from the Edit menu. The Insert Object dialog
  51.         box is displayed. All applications on your computer that support
  52.         OLE are listed.
  53.  
  54.      c. Use the arrow keys to scroll down the list and then double-click
  55.         Paintbrush to select it. The Paintbrush program will open.
  56.  
  57.      d. Create a quick drawing or type some text.
  58.  
  59.      e. Choose Exit & Return to (Untitled) from the File menu. Paintbrush
  60.         will automatically close. Choose "Yes" to update and the image you
  61.         just created will appear as an embedded object in your Write file.
  62.  
  63.      Editing an object is easy: just double-click it to open the server
  64.      application the object was created in, make your changes, choose Update,
  65.      and then choose Exit & Return to (Untitled) from the File menu to save
  66.      the file and return to your main document.
  67.  
  68.      With object linking, you can use the same information (the object) in
  69.      several different documents. An object can be any kind of file,
  70.      including text, drawing, or sound. You first create the object and then
  71.      connect (or link) it with as many documents as you want. You save disk
  72.      space because only one copy of the information exists - the documents
  73.      contain only the link. And you save time and effort because you don't
  74.      have to cut and paste the information into each document every time you
  75.      change anything. OLE makes integrating your applications easy.
  76.  
  77.      To practice linking a drawing using OLE in Windows 3.1, do the
  78.      following:
  79.  
  80.      a. From the Accessories group, double-click the Paintbrush icon.
  81.  
  82.      b. Choose Open from the File menu and then double-click WINLOGO.BMP.
  83.         The Microsoft Windows logo appears.
  84.  
  85.      c. Click the Paintbrush Cutout tool (the icon on the upper-right side
  86.         of the drawing tools) and then drag a rectangle around the graphic
  87.         to select it.
  88.  
  89.      d. Choose Copy from the Edit menu. A copy of the drawing will be
  90.         placed into the Windows Clipboard.
  91.  
  92.      e. From the File menu, choose Exit.
  93.  
  94.      f. Double-click the Write icon.
  95.  
  96.      g. Choose Paste Link in the Edit menu. You now have a Paintbrush
  97.         graphic
  98.  
  99.      (a link to the Paintbrush file) in your Write document. Whenever you
  100.      make changes to the Paintbrush file, the graphic in the Write document
  101.      is automatically updated.
  102.  
  103.      To edit a linked object, just double-click it to open the server
  104.      application, make your changes, and then choose Exit from the File menu
  105.      to save the file and return to your main document.
  106.  
  107.