RDOAddressBook object |
RDOAddressBook object provides address book related functionality: displaying the address book dialog, resolving names, accessing address lists and address entries, etc.
Returned by:
RDOSession.AddressBook
Derived from: _MAPIProp - |
||
|
|
||
|
_MAPIProp methods and properties: GetIDsFromNames, Fields(), GetPropList, GetNamesFromIDs, CopyTo, Save, MAPIOBJECT, Session |
||
|
|
||
Properties |
||
|
|
||
|
SearchPath |
Returns RDOAddressBookSearchPath object which allows to manipulate the address book containers used in automatic name resolution. |
set Session =
CreateObject("Redemption.RDOSession") |
|
DefaultAddressList |
Returns default RDOAddressList object. Read-write. Default address list is the default list shown when the Address Book dialog is displayed. |
set Session =
CreateObject("Redemption.RDOSession") Session.AddressBook.DefaultAddressList = AddrList |
|
PAB |
Returns RDOAddressList object designated as the Personal Address List. Read-only. |
|
|
GAL |
Returns RDOAddressList object representing the Global Address List container (Exchange only). Read-only. |
|
Methods |
||
|
|
||
|
AddressLists(ShallowTraversal) |
Returns RDOAddressLists object representing the top level address lists. ShallowTraversal - boolean, optional; default value: false. If false, returns all address lists and their child lists in a single collection. If true, returns only the top level address lists, use AddressList.AddressLists collection to traverse the hierarchy. |
set Session =
CreateObject("Redemption.RDOSession") MsgBox "There are " & AddrList.AddressEntries.Count & " items in the Contacts address list" |
|
CreateOneOffEntryID(Name, AddressType, Address, SendRichInfo, UseUnicode) |
Create a one-off entry id corresponding to the specified name, address type and address. Useful if you need to set the flag (MAPI_ONE_OFF_NO_RICH_INFO) governing whether a message will be sent in the RTF format or not. Name - string, name of the recipient AddressType - string, address type Address - string, e-mail address SendRichInfo - boolean. If true, e-mails will be sent in the RTF format UseUnicode - boolean. Determines whether the name and address are embedded in the Unicode format. Note that Outlook 2000 cannot handle one-off entry ids in the Unicode format. |
'for a given contact (ContactItem Outlook object), turn RTF off for Email1Address set Session =
CreateObject("Redemption.RDOSession") RDOContact.Email1DisplayName, _ "SMTP", _ RDOContact.Email1Address, _
false, true) |
|
GetAddressEntryFromID(EntryID) |
EntryID - string representing the entry id of the address entry object. Returns RDOAddressEntry object. |
|
|
GetAddressListFromID(EntryID) |
EntryID - string representing the entry id of the address list object. Returns RDOAddressList object. |
|
|
ShowAddressBook(Recipients,
Title, OneAddress, ForceResolution, RecipLists, |
Displays the Address Book window modally and returns the selected recipients as the RDORecipients collection object. Recipients - RDORecipients object, optional. Initial recipients displayed by the Address Book dialog. Title - string, optional. the title of the Address Book dialog. OneAddress - boolean, optional. If true, allows only one address to be selected. ForceResolution - boolean, optional. If true, force all returned recipients to be resolved. RecipLists - integer,
optional. Number of wells in the address book dialog (3 by default - To,
CC, BCC) CcLabel - string, optional. "CC" label. BccLabel - string, optional. "BCC" label. ParentWindow - integer, optional. Handle to the parent window. If none is specified, the foreground window will be used as a parent |
set Session =
CreateObject("Redemption.RDOSession") |
|
ResolveName(Name, ShowDialog, ParentWnd) |
Resolves the given name to an address book object and returns it as an RDOAddressEntry object. Name - string. The name to be resolved. ShowDialog - boolean, optional. If true, the address book dialog will displayed if the name cannot be resolved or if the name is ambiguous. ParentWnd - integer, optional. The handle of the window to be used as the dialog parent. See also: AddressList.ResolveName |
set Session =
CreateObject("Redemption.RDOSession") MsgBox "The address of the name is " & AddrEntry.Address |