Click here to Skip to main content
15,879,535 members
Articles / Productivity Apps and Services / Microsoft Office
Tip/Trick

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

Rate me:
Please Sign up or sign in to vote.
4.92/5 (16 votes)
24 Apr 2010CPOL 40.6K   11   4
Introduction...
Introduction

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:

cs>
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>]

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Comments and Discussions

 
QuestionCustom Menu in Visio Pin
himanshub197813-Sep-13 0:56
himanshub197813-Sep-13 0:56 
GeneralReason for my vote of 5 Helped me to start working on AddIn ... Pin
shijis27-Oct-11 5:52
shijis27-Oct-11 5:52 
GeneralSome help here for a VB.net programmer Pin
Michael Clinton26-Jan-10 11:57
Michael Clinton26-Jan-10 11:57 
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.

Any suggestions.
mjc
GeneralRe: Some help here for a VB.net programmer Pin
Md. Marufuzzaman26-Jan-10 18:20
professionalMd. Marufuzzaman26-Jan-10 18:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.