Previous Page TOC ORDER BOOK QUE Index Search Next Page

Lesson 24

Linking Information

In this lesson, you learn about linking and embedding data to your database documents.


Understanding Linking and Embedding

Most Windows applications enable object linking and embedding (OLE) between applications and between documents; Notes is no exception. You use linking and embedding as a method of sharing data between documents so you can save time in your work. You also use these features so that your data can quickly and easily be updated.

For example, suppose you create a document about the first quarter sales within a Notes database. Suppose also that you have all of your sales figures in an Excel spreadsheet. You can link a copy of the spreadsheet to the Notes document so that your readers can open the spreadsheet file and view your data. And as a bonus, if you choose to link the document, any changes you make in the Excel spreadsheet automatically update the link in your Notes document.

When you link data, you copy the data from one document or application (called the source), and you paste the data in a special way to another document or application (called the destination). A connection, or link, exists between the two documents so that any changes in the source are automatically updated in the destination.

When you embed data, you actually create one document within another. For example, you might want to place a picture in a Notes database document. In the Notes document, you open the graphics application (the source), create the picture, and then save the picture within the Notes document (the destination). Anytime you want to edit the picture, you double-click it, and the source application opens so you can edit the picture.


I Can’'t Edit!

In order to edit data you’ve linked or embedded from another application to a Notes document, you must have the source application installed on your computer. .


You can link and embed text, pictures, spreadsheets, tables, or sound and video clips, all of which are called objects. There are many advantages to linking and embedding objects. Linking saves disk space and makes use of objects you’ve already created and want to use again. In addition, linking enables you to use one source and many different destinations; and all destinations are automatically updated when you make changes to the source. Embedding, on the other hand, uses more disk space, but it makes editing the object within the document a quick and easy task. Embedding also enables you to change the object in the destination document without changing the source document.

Linking Data

In Lesson 21, you learned how to create a link (doclink) between documents within Notes. Now you learn to link data between Notes and another application.

To link data from another application to Notes, follow these steps:

  1. In the source application, select the data you want to link and choose Edit, Copy (as shown in Figure 24.1). Windows copies the data to the Clipboard.
  2. Using the Windows 95 taskbar or the Task List, switch to the Notes application and open the database and document to which you want to link the data.

  3. Figure 24.1 You can link data from Excel to a Notes document, for example.
  4. Position the insertion point where you want the link and choose Edit, Paste Special. The Paste Special dialog box appears (see Figure 24.2).

  5. Figure 24.2 Paste the data on the Clipboard as a link in the Notes document.
  6. Choose the Paste link to source option.
  7. In the As list, select the type of data you’re pasting (if it’s not already selected).
  8. Click OK to paste the data to the Notes document. Fig-ure 24.3 shows an Excel table in a Notes document.

Figure 24.3 An Excel spreadsheet that’s linked to a Notes document is automatically updated.
Quick Edit

To edit a linked item, double-click it, and the source application opens with the data ready to edit. When you change data in the source application, the data automatically changes in the destination.


Embedding Data

When you embed data, you create an object—text, table, picture, or sound file—within the destination document. Embedding uses more disk space and more memory because when you create or change an embedded object in the destination document, you must actually open and use two programs at one time.

Follow these steps to embed data:

  1. In edit mode, position the insertion point in the Notes document where you want to create the embedded object.
  2. Choose Create, Object. The Create Object dialog box appears (see Figure 24.4).

  3. Figure 24.4 Choose the type of object you want to create.
  4. Choose Create a new object if you want to create an object using one of the applications listed. Choose Create an object from a file if you want to embed an existing object.
  5. In the Object type list, select the kind of object you want to add to the Notes document. (What types of objects you can create depends on the programs installed to your computer.)
  6. Click OK, and the application opens within the Notes document with all the tools and menus you need to create the object. Figure 24.5 shows a Notes document with the Windows Paint program open, ready for the user to create an embedded object.

  7. Figure 24.5 The Paint program is open within Notes.
  8. When you finish creating the object, click anywhere in the Notes document outside of the object’s frame. The source application closes, and the object appears in the Notes document (see Figure 24.6).

Figure 24.6 An embedded Paint object in a Notes document.
Frame

The box that appears around many embedded or linked objects in a Notes document. You can usually click and drag the bottom right corner of the frame to resize the object within the document.


To edit any embedded object, double-click the object, and the source application opens. Edit the object as you want. When you finish, click outside the frame of the object to close the source application.

Updating Links

When you open a document that contains linked data, Notes displays a message asking if you want to refresh the links in that document. Click Yes to update the links and to update all data in the object. To update the changes in the Notes document at any other time, change to Edit mode and choose View, Refresh.

If you click No when you’re asked to update a link, the links are broken. Once the links are broken, any changes made to the source are not updated in the destination document. You can still double-click the object and open the source application, but the changes you make there will not be updated in the destination.


Shortcut

To refresh the view at any time—and thus update the links—press F9.


In this lesson, you learned to link data and embed data and to update links. In the next lesson, you learn to work remotely with Notes.


Previous Page TOC ORDER BOOK QUE Index Search Next Page