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: address book selectnamedialog

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

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -