none
References to both Outlook 2007 and 2010 in VC# app? RRS feed

  • Question

  • Uh...  Not sure this is the right place to ask or if it's even possible. 

    I'm a new developer on a VC# app that has a couple of forms with an Outlook calendar on them.  I was using Outlook 2007 and building and debugging the code worked fine.  I made the mistake of updating to Outlook 2010 and now the app errors on microsoft.office.interop.outlook.  If I must, then I'll revert back to Outlook 2007 on my machine (this is what the end users have presently).  There's really only one other developer.  I believe he still has Outlook 2007 on his machine.  Is there any way to set the solution up so it works for me with Outlook 2010 and him with Outlook 2007?

    Thanks,

    Kirt

    Wednesday, October 5, 2011 4:56 AM

Answers

  • Use the lowest version of Outlook that you are planning to support. In you case, use Outlook 2007. It should run fine on an Outlook 2010 machine.
    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/
    OutlookSpy - Outlook, CDO
    and MAPI Developer Tool
    Wednesday, October 5, 2011 5:09 AM
  • Hi Kirt,

    Are you working on a VSTO Outlook addin?  If so, you might want to have a read at this blog:

    http://blogs.msdn.com/b/andreww/archive/2007/06/15/can-you-build-one-add-in-for-multiple-versions-of-office.aspx

    The blog demonstrate an approach, which is although not supported, to enable your VSTO add-in to works for both Outlook 2007 and 2010, which I think is just what Dmirty want to suggest you to do.

    If you are working on a WinForm application which invokes some Outlook PIAs, I would like ask to specify your issue in more details.

    What error your got?

    Which code cause the error?

    Which version of your Outlook 2010, 32-bit or 64 bit?

    Which platform your application works on, 32-bit or 64 bit?

    ...

    I look forward to hearing of you soon.


    Best Regards, Calvin Gao [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Thursday, October 6, 2011 10:05 AM
    Moderator

All replies

  • Use the lowest version of Outlook that you are planning to support. In you case, use Outlook 2007. It should run fine on an Outlook 2010 machine.
    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/
    OutlookSpy - Outlook, CDO
    and MAPI Developer Tool
    Wednesday, October 5, 2011 5:09 AM
  • Hi Kirt,

    Are you working on a VSTO Outlook addin?  If so, you might want to have a read at this blog:

    http://blogs.msdn.com/b/andreww/archive/2007/06/15/can-you-build-one-add-in-for-multiple-versions-of-office.aspx

    The blog demonstrate an approach, which is although not supported, to enable your VSTO add-in to works for both Outlook 2007 and 2010, which I think is just what Dmirty want to suggest you to do.

    If you are working on a WinForm application which invokes some Outlook PIAs, I would like ask to specify your issue in more details.

    What error your got?

    Which code cause the error?

    Which version of your Outlook 2010, 32-bit or 64 bit?

    Which platform your application works on, 32-bit or 64 bit?

    ...

    I look forward to hearing of you soon.


    Best Regards, Calvin Gao [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Thursday, October 6, 2011 10:05 AM
    Moderator