D
Dinesh
hello everybody,
iam using visual c# for creating add-in for outlook 2007. my code is
Outlook.Explorer thisexplo;
Redemption.RDOMail rMail;
private void ThisAddIn_Startup(object sender, System.EventArgs e)
{
thisexplo = this.Application.ActiveExplorer();
thisexplo.SelectionChange += new
Microsoft.Office.Interop.Outlook.ExplorerEvents_10_SelectionChangeEventHandler(ThisAddIn_SelectionChange);
}
void ThisAddIn_SelectionChange()
{
Outlook.MailItem mail;
mail = (Outlook.MailItem)thisexplo.Selection[1];
string ID = mail.EntryID;
Redemption.RDOSession sess = new Redemption.RDOSession();
sess.MAPIOBJECT = mail.Session.MAPIOBJECT;
rMail = sess.GetMessageFromID(ID, null, null);
string check;
check = rMail.get_Fields(0x007D001E).ToString();
int che = check.IndexOf("X-context-id");
int ch = check.IndexOf("X-Virus");
string str = check.Substring(che,ch-che);
MessageBox.Show("" + str);
it works fine. now i have to create a new region in the outlook where i can
display the str string value when i read the mail from the inbox.
Thank you.
iam using visual c# for creating add-in for outlook 2007. my code is
Outlook.Explorer thisexplo;
Redemption.RDOMail rMail;
private void ThisAddIn_Startup(object sender, System.EventArgs e)
{
thisexplo = this.Application.ActiveExplorer();
thisexplo.SelectionChange += new
Microsoft.Office.Interop.Outlook.ExplorerEvents_10_SelectionChangeEventHandler(ThisAddIn_SelectionChange);
}
void ThisAddIn_SelectionChange()
{
Outlook.MailItem mail;
mail = (Outlook.MailItem)thisexplo.Selection[1];
string ID = mail.EntryID;
Redemption.RDOSession sess = new Redemption.RDOSession();
sess.MAPIOBJECT = mail.Session.MAPIOBJECT;
rMail = sess.GetMessageFromID(ID, null, null);
string check;
check = rMail.get_Fields(0x007D001E).ToString();
int che = check.IndexOf("X-context-id");
int ch = check.IndexOf("X-Virus");
string str = check.Substring(che,ch-che);
MessageBox.Show("" + str);
it works fine. now i have to create a new region in the outlook where i can
display the str string value when i read the mail from the inbox.
Thank you.