none
how can we retrieve business address in MAPI using C++ ? RRS feed

  • Question

  • Please Help ....

    show the screen short below ...

    When I used PR_BUSINESS_ADDRESS_STREET it get HOME address..

    When I usedPR_HOME_ADDRESS_STREET it get HOME address..

    When I used PR_OTHER_ADDRESS_STREET it get OTHER address..

    how we can retrieve BUSINESS Address ?

    Code screen Shorthome address screen short





    Monday, January 6, 2014 5:05 AM

Answers

All replies

  • Hello Vijay,

    Thank you for publishing a screenshot. I see that you keep the Home address filled. Do have any data set for the Business address?

    I have just tried to reproduce the issue on my PC and I always get the right address. That is why I can make a conclusion that you have the Business field not set. Is this the case?

    Did you have a chance to check out the BusinessAddress property of the Contact class from the Outlook Object Model? Do you get the same results?

    Finally, I'd suggest asking Outlook related questions in the Outlook for developers forum. There you will get the most qualified answers.

    Monday, January 6, 2014 12:01 PM
  • You could try PR_STREET_ADDRESS.

    Tuesday, January 7, 2014 7:57 AM
  • Thanks for reply ...

    PR_STREET_ADDRESS gets only home address street..


    Tuesday, January 7, 2014 8:20 AM
  • Hi Vijay,

    Did you try to use the Outlook Object Model for getting the properties? Do you get the same results?

    Tuesday, January 7, 2014 8:27 AM
  • Dear, Eugene Astafiev

    I read few pages in  Outlook Object Model Article but

    i think this for VB & C# not For MFC/C++

    Component Object Model

    Tuesday, January 7, 2014 8:41 AM
  • Vijay,

    Note, you just need to check out the address related properties. The most easiest way is to use VBA. Most probably your code works in the right way, but properties don't exist due to the fact that they were not filled in Outlook at all. Is there a chance?

    I have found the Building a C++ Add-in for Outlook 2010 article in MSDN. Also you may be interested in the  How to use an Outlook Object Model from Visual C++ by using a #import statement tutorial.

    Tuesday, January 7, 2014 8:50 AM
  • Eugene Astafiev,

    Outlook properties get correct values but remaining only

    PR_BUSINESS_ADDRESS_STREET

    PR_BUSINESS_ADDRESS_CITY

    PR_BUSINESS_ADDRESS_COUNTRY

    PR_BUSINESS_ADDRESS_POSTAL_CODE

    PR_BUSINESS_ADDRESS_STATE_OR_PROVINCE

    very very thanks for you send me reply..

    i will try to read Outlook Object Model using #import statement.

    i don't have to time learning VB and C# ..

    have a nice day ...

    Tuesday, January 7, 2014 9:13 AM
  • You are always welcome, Vijay! :)
    Tuesday, January 7, 2014 9:21 AM