Get Outlook 07 email & attachments entry ID using C#.NET

VBA developers are very much familiar with the features of Microsoft .NET platform to develop custom AddIn for Office system... This tip is about to get an Outlook email entry id & programmatic way to retrieve the attachments and store into another location. A sample code example is given below:

Example:

More information on Outlook.Inspectors can be found at <a href="http://msdn.microsoft.com/en-us/library/ms268893%28VS.80%29.aspx">this link.</a>[<a href="http://msdn.microsoft.com/en-us/library/ms268893%28VS.80%29.aspx" target="_blank" title="New Window">^</a>]

Comments and Discussions

Hi
I have custom menu in Visio 2007 having similar code as you have mentioned in your article.The menu gets fired first time we load the visio 2007 application i.e. without any visio file loading.After loading visio file custom menu item does not fire.

Does ThisAddin_startup code go in the Form1_Load sub?
What I did was create a ribbon with a button that opens a form. I then ask for a user id or lastname where I display a datagridview on result and then have them click on a row that gives me a Person ID. I hide the panel and then show another panel with more detail of that person. I want to then have the option to save the email body with a select of type of email... like Drug Screening, Back Ground Investication, ect... Then I want an option to save individual attachments again with attachment types. I would assume I would have a datagrid that would email body and this list off the individual attachments with a combobox column to save the files individual.

Your creating a ribbon with command Button, which will display a winForm...After then you are trying to play with the Outlook email....This can be done! Please let me know what thpes of help do you need..Do you prefer some code snippets using VB.Net?