18.01.2013 Views

LotusScript for Visual Basic Programmers - IBM Redbooks

LotusScript for Visual Basic Programmers - IBM Redbooks

LotusScript for Visual Basic Programmers - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Linking Data to a Notes Document<br />

To link a Word Pro 96 document to a Notes document, follow these steps:<br />

1. Create a Word Pro 96 document and save it in \notes\data\wordpro,<br />

<strong>for</strong> example. In our example, we called the document OLE2TEST.LPW.<br />

It looks like this:<br />

2. Open the Word Pro document, select the data you want to link and<br />

copy it to the clipboard.<br />

3. Switch to the Notes window and create a document based on the OLE 2<br />

document <strong>for</strong>m you created earlier on.<br />

4. Click the Linking radio button and then click in the Object field.<br />

5. Choose Edit - Paste Special from the menu bar.<br />

6. Click the Paste link to source radio button and select Word Pro 96<br />

document in the As: box.<br />

7. Click OK and save the document. The Notes document should look like<br />

this:<br />

Chapter 11: Using Notes as an OLE 2 Automation Client: Creating Objects 177

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!