• Subject: Re: Access Signatures in Outlook 2007 using C#
  • Author: Sunil
  • Date: 27 Aug 2008
  • References: 1 2
Thanks Ken.
Is there any mechanism within outlook object model so that I can access the
signatures? One solution would be accessing these files directly.

Thanks,
Sunil

"Ken Slovak - [MVP - Outlook]" wrote:

> The signatures are stored at [AppData]\Microsoft\Signatures\. Each signature
> has 3 files: txt, rtf and htm, one for each text format.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Professional Programming Outlook 2007.
> Reminder Manager, Extended Reminders, Attachment Options.
> http://www.slovaktech.com/products.htm
>
>
> "Sunil" <Sunil@discussions.microsoft.com> wrote in message
> news:09FF026D-0CFD-4CAA-846E-C4F4B515EA01@microsoft.com...
> > 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
>
>
27 Aug 2008Access Signatures in Outlook 2007 using C#.Sunil
27 Aug 2008\ Re: Access Signatures in Outlook 2007 using C#.Ken Slovak - [MVP - O...
27 Aug 2008   \ Re: Access Signatures in Outlook 2007 using C#.Sunil
27 Aug 2008      \ Re: Access Signatures in Outlook 2007 using C#.Ken Slovak - [MVP - O...
28 Aug 2008         \ Re: Access Signatures in Outlook 2007 using C#.Sunil
All times are in (US) Eastern Daylight Time (GMT -4:00)