Results 1 to 3 of 3
  1. #1
    3 Star Lounger
    Join Date
    Aug 2002
    Location
    Brisbane, Queensland, Australia
    Posts
    387
    Thanks
    0
    Thanked 1 Time in 1 Post
    I have an application that uses a reference to the Outlook Object Library.

    and code that uses this reference eg -
    Dim appOutlook As Outlook.Application
    Dim oNamespace As Outlook.NameSpace

    Problem is that some users may not have Outlook installed.

    Others may have a different version of Office.

    Can anyone offer a strategy for dealing with this?

  2. #2
    Super Moderator
    Join Date
    Jun 2002
    Location
    Mt Macedon, Victoria, Australia
    Posts
    3,993
    Thanks
    1
    Thanked 45 Times in 44 Posts
    You could look at using Late Binding but people who don't have Outlook still won't be able to perform the actions that need outlook.
    Regards
    John



  3. #3
    3 Star Lounger
    Join Date
    Aug 2002
    Location
    Brisbane, Queensland, Australia
    Posts
    387
    Thanks
    0
    Thanked 1 Time in 1 Post
    Yep, Late binding is the answer, of course this means declaring all the outlook objects as 'Object' and losing intellisense.

    But wiriting the code with the reference in place, and using early biinding, then converting it is fine.

    In this case the users without Outlook wont be able to get at the form doing the mail stuff, but now the code compiles on all machines regardless of whether they have Outlook.

    Thanks John.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •