none
Microsoft Outlook 2010 Reply Event example in c#.net RRS feed

  • Question

  • Reply Event example available in visual Basic. that's not available in c#.net..

    software i Used:

       Microsoft Outlook 2010

       Microsoft Visual Studio 2010 Ultimate

       Microsft Primary Interop Assembiles 2010

    Please Help.. Reply event statisfy about requiremnt...

    Wednesday, February 22, 2012 11:25 AM

Answers

  • private void connectToReply(Outlook.MailItem mailItem)
    {
        ((Outlook.ItemEvents_10_Event)mailItem).Reply += new Microsoft.Office.Interop.Outlook.ItemEvents_10_ReplyEventHandler(AddinModule_Reply);
    }
    
    void AddinModule_Reply(object Response, ref bool Cancel)
    {
        // TODO: add some code
        throw new NotImplementedException();
    }

    Hope this is what you are looking for.

    As to WHEN connect to the Reply event, see the blogs I mentioned in the other thread.


    Regards from Belarus (GMT + 3),

    Andrei Smolin
    Add-in Express Team Leader

    Please mark answers and useful posts to help other developers use the forums efficiently.

    Wednesday, February 22, 2012 1:23 PM

All replies

  • Reply Event example available in visual Basic. that's not available in c#.net..

    software i Used:

       Microsoft Outlook 2010

       Microsoft Visual Studio 2010 Ultimate

       Microsft Primary Interop Assembiles 2010

    Please Help.. Reply event statisfy about requiremnt...

    • Moved by CoolDadTx Wednesday, February 22, 2012 2:43 PM Not IDE related (From:Visual C# IDE)
    • Merged by Lie You Thursday, February 23, 2012 9:11 AM Merged them to keep good discuss.
    Wednesday, February 22, 2012 11:23 AM
  • That event is provided by every Outlook item type including MailItem.

    Regards from Belarus (GMT + 3),

    Andrei Smolin
    Add-in Express Team Leader

    Please mark answers and useful posts to help other developers use the forums efficiently.

    Wednesday, February 22, 2012 11:49 AM
  • Respected Sir,

       I want Reply event code example in c#.net (programmatically)

       You are provided the answer for outlook express. but i want in Microsoft Outlook 2010

      

    By

    Tamilselvan Periasamy

    Coimbatore

    Wednesday, February 22, 2012 12:34 PM
  • I talk about Outlook, not about Outlook Express (it doesn't provide any object model). The samples I posted are for all Outlook versions., including Outlook 2010.

    Once gain, you need to use the Reply event provided by Outlook.MailItem.


    Regards from Belarus (GMT + 3),

    Andrei Smolin
    Add-in Express Team Leader

    Please mark answers and useful posts to help other developers use the forums efficiently.

    Wednesday, February 22, 2012 12:48 PM
  •    I want small code sample for using outlook.mailitem reply event
    Wednesday, February 22, 2012 12:51 PM
  • private void connectToReply(Outlook.MailItem mailItem)
    {
        ((Outlook.ItemEvents_10_Event)mailItem).Reply += new Microsoft.Office.Interop.Outlook.ItemEvents_10_ReplyEventHandler(AddinModule_Reply);
    }
    
    void AddinModule_Reply(object Response, ref bool Cancel)
    {
        // TODO: add some code
        throw new NotImplementedException();
    }

    Hope this is what you are looking for.

    As to WHEN connect to the Reply event, see the blogs I mentioned in the other thread.


    Regards from Belarus (GMT + 3),

    Andrei Smolin
    Add-in Express Team Leader

    Please mark answers and useful posts to help other developers use the forums efficiently.

    Wednesday, February 22, 2012 1:23 PM
  • private void connectToReply(Outlook.MailItem mailItem)
    {
        ((Outlook.ItemEvents_10_Event)mailItem).Reply += new Microsoft.Office.Interop.Outlook.ItemEvents_10_ReplyEventHandler(AddinModule_Reply);
    }
    
    void AddinModule_Reply(object Response, ref bool Cancel)
    {
        // TODO: add some code
        throw new NotImplementedException();
    }

    Hope this is what you are looking for.

    As to WHEN connect to the Reply event, see the blogs I mentioned in the other thread.


    Regards from Belarus (GMT + 3),

    Andrei Smolin
    Add-in Express Team Leader

    Please mark answers and useful posts to help other developers use the forums efficiently.

    Nice sir,

    Thanks...

    Thursday, February 23, 2012 6:09 AM
  • private void connectToReply(Outlook.MailItem mailItem)
    {
        ((Outlook.ItemEvents_10_Event)mailItem).Reply += new Microsoft.Office.Interop.Outlook.ItemEvents_10_ReplyEventHandler(AddinModule_Reply);
    }
    
    void AddinModule_Reply(object Response, ref bool Cancel)
    {
        // TODO: add some code
        throw new NotImplementedException();
    }

    Hope this is what you are looking for.

    As to WHEN connect to the Reply event, see the blogs I mentioned in the other thread.


    Regards from Belarus (GMT + 3),

    Andrei Smolin
    Add-in Express Team Leader

    Please mark answers and useful posts to help other developers use the forums efficiently.

    Your blogs seem to revolve around add-in Express. Have you got examples that don't rely on add-in express, as a home single developer I cannot afford to buy it.

    thanks

    Saturday, October 27, 2012 6:34 PM