- Subject: Access Signatures in Outlook 2007 using C#
- Author: Sunil
- Date: 27 Aug 2008
- References:
Hi All,
Can anybody please provide me the C# code to access the Signatures stored in
Outlook 2007. I have tried to accessing the stored signatures but did not
find any success. I have used below code
Outlook.Inspector objInsp;
Word.Document objDoc;
objInsp = Application.ActiveInspector();
mailItem = objInsp.CurrentItem as Outlook.MailItem;
objDoc = objInsp.WordEditor as Word.Document;
foreach (Office.SignatureSet sig in objDoc.Signatures)
{
}
But Here objDoc.Signatures does not return any data. Please let me know If I
am missing something here.
Thanks,
Sunil