c# - To get GAL of non default address book from multiple accounts in outlook -
i have 2 domain accounts configured in outlook, example xxx@domain1.com , yyy@domain2.com.
there 2 address books (please refer picture attached). want show user selectnamedialog adding recipients non-default account's address book. adds names selectnamedialog default address book , displays.
c# code :
outlook.selectnamesdialog snd = app.session.getselectnamesdialog();![addressbook select name dialog][1]
how non-default account’s address book programmatically.
1:
make sure outlook automatically selects relevant address book based om active store (ctrl + shift + b show address book, tools | options | "when opening address book, show address list first", make sure "choose automatically" selected).
programmatically, use selectnamesdialog object , initialaddresslist property.
Comments
Post a Comment