display header info in outlook frame below the email

D

Dinesh

hello everybody,

iam using this code to read the email header.

Outlook.MailItem mail;
mail = (Outlook.MailItem)thisexplo.Selection[1];
string ID = mail.EntryID;
Redemption.RDOSession sess = new Redemption.RDOSession();
sess.MAPIOBJECT = mail.Session.MAPIOBJECT;
Redemption.RDOMail rMail = sess.GetMessageFromID(ID, null, null);
MessageBox.Show("header info " +
rMail.get_Fields(0x007D001E).ToString));

This is working perfectly and iam getting the header. In this iam display it
in the message box. i want display 2 lines from the header below the email
which should while i click the email to read in the outlook express. so it
possible the display in below the mail instantly ?. if so help with the idea
how to do it in c#.

thank you.
 
K

Ken Slovak - [MVP - Outlook]

Outlook Express? Or do you really mean Outlook? They are completely
different programs. The object model exposed for OE is minimal and mostly
non-functional. You can find it documented at MSDN. There is a library for
OE from Nektra that does provide a more complete way to program OE, but I
have no idea if can do what you want. That you'd have to find out.

If you really meant Outlook then depending on which version of Outlook you
can use a form region or custom task pane for Outlook 2007 to display the
header information on either an item viewed in the preview pane or an open
item. For earlier versions of Outlook you can't do that or display anything
in the preview pane, you'd have to open a Windows form when the item was
opened to show the header information or use a custom form and provide form
code to display the header information in a control added to the custom
form, such as a textbox.

Take a look at the information on form regions, custom task panes and custom
forms at www.outlookcode.com.
 
D

Dinesh

Thank for the information ken slovak,

actaully i need do it in the outlook 2003 office version. is it possible to
create a region like that in outlook 2007?.





Ken Slovak - said:
Outlook Express? Or do you really mean Outlook? They are completely
different programs. The object model exposed for OE is minimal and mostly
non-functional. You can find it documented at MSDN. There is a library for
OE from Nektra that does provide a more complete way to program OE, but I
have no idea if can do what you want. That you'd have to find out.

If you really meant Outlook then depending on which version of Outlook you
can use a form region or custom task pane for Outlook 2007 to display the
header information on either an item viewed in the preview pane or an open
item. For earlier versions of Outlook you can't do that or display anything
in the preview pane, you'd have to open a Windows form when the item was
opened to show the header information or use a custom form and provide form
code to display the header information in a control added to the custom
form, such as a textbox.

Take a look at the information on form regions, custom task panes and custom
forms at www.outlookcode.com.




Dinesh said:
hello everybody,

iam using this code to read the email header.

Outlook.MailItem mail;
mail = (Outlook.MailItem)thisexplo.Selection[1];
string ID = mail.EntryID;
Redemption.RDOSession sess = new Redemption.RDOSession();
sess.MAPIOBJECT = mail.Session.MAPIOBJECT;
Redemption.RDOMail rMail = sess.GetMessageFromID(ID, null,
null);
MessageBox.Show("header info " +
rMail.get_Fields(0x007D001E).ToString));

This is working perfectly and iam getting the header. In this iam display
it
in the message box. i want display 2 lines from the header below the email
which should while i click the email to read in the outlook express. so it
possible the display in below the mail instantly ?. if so help with the
idea
how to do it in c#.

thank you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top