The information in this article applies to:
- Microsoft Outlook 97
- Microsoft Word 97
SUMMARY
This article describes how you can use the Microsoft Outlook 97 Message
view of a messaging application programming interface (MAPI) folder to
display a Microsoft Word 97 document's custom properties.
MORE INFORMATION
The example below is a three-part process. First, you create a Word
document that contains custom properties. Second, you create a Mail item
MAPI folder in Outlook and move the document into that folder. Third, you
add the custom properties field to the Outlook view.
Part 1 - Create a Word Document with Custom Properties
- Create a new Word for Windows 97 document.
- On the View menu, point to Toolbars, and then click Forms to open the
Forms toolbar.
- On the Forms toolbar, click the Text Form Field button to insert a
text box.
- Double-click the text box to display the Text Form Field Options
dialog box.
- In the Bookmark box, type to replace Text1 with ProjectName and
click OK.
- On the File menu, click Properties, and then click the Custom tab.
- In the Name box, type "myprop" (without the quotation marks) for the
name of a custom property.
- Click to select the Link To Content check box and in the Source list,
click to select ProjectName as the linked source.
- Click Add.
NOTE: The new custom property is now in the Properties list and is a
linked property, indicated by a small chain link icon to the left of
the property name.
- Click OK to close the Document Properties.
- On the Forms toolbar, click the Protect Document button to protect
the document.
- On the File menu, click Save and save the document as Testlink.doc.
- On the File menu, click Close to close the document. You must close
the document before following the next series of steps.
Part 2 - Create a Mail Folder and Drag the Document to the Folder
- Start Outlook and on the Outlook Bar, click Other to make it the active
group.
- On the File menu, point to New, and then click Folder to open the Create
New Folder dialog box.
- In the Name box, type Testlink and in the Folder Contains list,
click to select Mail Items. Make sure that the check box for "Create a
shortcut to this folder in the Outlook Bar" is selected and click OK.
- On the Outlook Bar, click My Computer. In the Messages view, find and
click to select the Testlink.doc file.
- Drag the Testlink.doc file to the Testlink shortcut on the Outlook
Bar.
Part 3 - Add the Custom Property to the Outlook View
- Click the Testlink shortcut on the Outlook Bar. The Testlink.doc
file is now an item in the Testlink MAPI folder. You should see
Testlink.doc in the Messages view of the Testlink folder.
- On the View menu, click Field Chooser.
- From the list box at the top of the Field Chooser dialog box, click to
select "User-defined fields in folder."
- Drag the myprop field to the column headers of the current view
to create a new column. The value of the myprop field is initially
blank.
- In the Messages view, double-click Testlink.doc to open it in Word.
- With Testlink.doc open, type "This is new text" in the text box.
- On the File menu, click Close, and when prompted to save changes, click
Yes.
The updated value in the myprop field of the Outlook messages view
should read "This is new text."
REFERENCES
For more information about creating Outlook user-defined fields, type
"creating user-defined fields" in the Office Assistant, click Search,
and then click to view "Create a custom field."
|