none
Property accessor code alternate in Outlook 2003 RRS feed

  • Question

  • Hi, I have used Property Accessor in a project using VSTO and Outlook 2007. I need to run the same project in Outlook 2003, how can I have alternate code for my requirement ?

    Can extended Mapi help on my requirement, If yes, can someone provide me a link? Also I can't use any payable thing (so redemption is out of option for me).

     string PR_MAIL_HEADER_TAG = "http://schemas.microsoft.com/mapi/proptag/0x007D001E";
                            Outlook.PropertyAccessor oPropAccessor = MySelectedMailItem.PropertyAccessor;
                            string strHeader = (string)oPropAccessor.GetProperty(PR_MAIL_HEADER_TAG);
                            if (strHeader != "")
                            {
                                // INBOX item is selected
                            }
                            else
                            {

    // SENTBOX

    }

    Thanks.

    Sujit
    http://simplencomplex1.blogspot.com



    sujit
    Monday, April 25, 2011 6:15 AM

All replies

  • Extended MAPI and CDO 1.21 are both unsupported for use with managed code. So you won't be able to use either unless you write an unmanaged dll that wraps the MAPI calls and which in turn can be called from managed code.
     
    There's no link, as what you are proposing isn't supported.

    --
    Ken Slovak
    MVP - Outlook
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
     
     
    "sujit1779" <=?utf-8?B?c3VqaXQxNzc5?=> wrote in message news:62ea855e-a8c8-451c-a948-9ce7333b4d01...

    Hi, I have used Property Accessor in a project using VSTO and Outlook 2007. I need to run the same project in Outlook 2003, how can I have alternate code for my requirement ?

    Can extended Mapi help on my requirement, If yes, can someone provide me a link? Also I can't use any payable thing (so redemption is out of option for me).

     string PR_MAIL_HEADER_TAG = "http://schemas.microsoft.com/mapi/proptag/0x007D001E";
                            Outlook.PropertyAccessor oPropAccessor = MySelectedMailItem.PropertyAccessor;
                            string strHeader = (string)oPropAccessor.GetProperty(PR_MAIL_HEADER_TAG);
                            if (strHeader != "")
                            {
                                // INBOX item is selected
                            }
                            else
                            {

    // SENTBOX

    }

    Thanks.

    Sujit
    http://simplencomplex1.blogspot.com



    sujit

    Ken Slovak MVP - Outlook
    Monday, April 25, 2011 5:57 PM
  • Thanks Ken. Will redemption help me on this?
    sujit
    Tuesday, April 26, 2011 5:13 AM
  • @ Sujit

    Yes. Redemption will fulfill your requirement.


    Pranav Ainavolu
    Tuesday, April 26, 2011 5:49 AM
  • Hi sujit,

    you can use Redemtion

    http://www.dimastr.com/redemption/

    Add-In-Express

    http://www.add-in-express.com/products/mapi-store-events.php

    MAPIProp

    http://www.mapilab.com/dev/mapiprop/

    or try this approach...

    http://www.codeproject.com/KB/office/BridgingTheGap.aspx

    Hope this helps,

    greets - Helmut


    Helmut Obertanner [http://www.x4u.de] [http://www.outlooksharp.de]
    Tuesday, April 26, 2011 5:54 AM
    Answerer
  • Thanks Pranav and Helmut. I will try and let you both know :-)
    sujit
    Tuesday, April 26, 2011 6:48 AM
  • Yes, Redemption would help.
    --
    Ken Slovak
    MVP - Outlook
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
     
     
    "sujit1779" <=?utf-8?B?c3VqaXQxNzc5?=> wrote in message news:6a89cf2c-3679-4842-9753-6401831c4974...
    Thanks Ken. Will redemption help me on this?
    sujit

    Ken Slovak MVP - Outlook
    Tuesday, April 26, 2011 1:21 PM