Get docked message object in Outlook 2013 -


getting open new email message (when un-docked main outlook window) requires following code:

outlook.application oapp = new outlook.application(); outlook.inspector inspector = oapp.activeinspector(); item = inspector.currentitem; outlook.mailitem omsg = item outlook.mailitem; 

how do when new message docked within main window of outlook? happens when user clicks reply button within message viewing.

if want return new message object (like outlook.mailitem), should try this:

outlook.application oapp = new outlook.application(); outlook.mailitem omsg = explorer.gettype().invokemember("activeinlineresponse",     system.reflection.bindingflags.getproperty |     system.reflection.bindingflags.instance |     system.reflection.bindingflags.public, null, explorer, null) outlook.mailitem; 

you should able attach file docked outlook message required.


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -