Programming with Outlook

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • henrycortezwu@gmail.com

    #1

    Programming with Outlook

    Hi All,
    I'm thinking of including this method of sending attachments using
    the code in the link below, it uses Outlook Objects.

    How to send attachments in an e-mail message by using Visual Basic .NET
    http://support.microsoft.com/default...b;en-us;313803

    Several Questions,
    1) When I create the Setup Program for my application is it legally
    right to include the Outlook dll?

    2) If a client w/o MS Outlook uses my app, will the applicaton fail to
    "launch" from the start, or just the "form" that uses the outlook dll?

    3) I plan to use Outlook Object 10 instead of 11, will version 10 work
    with clients with Outlook 2003?

    4) Is it possible to "catch" clients w/o Outlook installed?

    5) Is it possible to "catch" clients w/ incompatible versions of
    Outlook, say Outlook 98, if I decided to use Outlook XP dll or version
    10?

    Thanks so much!!
    Henry :)

  • Cor Ligthert [MVP]

    #2
    Re: Programming with Outlook

    > Hi All,[color=blue]
    > I'm thinking of including this method of sending attachments using
    > the code in the link below, it uses Outlook Objects.
    >
    > How to send attachments in an e-mail message by using Visual Basic .NET
    > http://support.microsoft.com/default...b;en-us;313803
    >
    > Several Questions,
    > 1) When I create the Setup Program for my application is it legally
    > right to include the Outlook dll?
    >[/color]

    No it is illegal

    Does this than answer the rest of your questions as well.

    Cor


    Comment

    • Stefan De Schepper

      #3
      Re: Programming with Outlook

      Hi Henry,

      You might consider using the MailMessage class instead:
      http://msdn.microsoft.com/library/de...classtopic.asp

      Hope this helps,
      Stefan


      <henrycortezwu@ gmail.com> wrote in message
      news:1122176962 .052514.289650@ f14g2000cwb.goo glegroups.com.. .[color=blue]
      > Hi All,
      > I'm thinking of including this method of sending attachments using
      > the code in the link below, it uses Outlook Objects.
      >
      > How to send attachments in an e-mail message by using Visual Basic .NET
      > http://support.microsoft.com/default...b;en-us;313803
      >
      > Several Questions,
      > 1) When I create the Setup Program for my application is it legally
      > right to include the Outlook dll?
      >
      > 2) If a client w/o MS Outlook uses my app, will the applicaton fail to
      > "launch" from the start, or just the "form" that uses the outlook dll?
      >
      > 3) I plan to use Outlook Object 10 instead of 11, will version 10 work
      > with clients with Outlook 2003?
      >
      > 4) Is it possible to "catch" clients w/o Outlook installed?
      >
      > 5) Is it possible to "catch" clients w/ incompatible versions of
      > Outlook, say Outlook 98, if I decided to use Outlook XP dll or version
      > 10?
      >
      > Thanks so much!!
      > Henry :)
      >[/color]


      Comment

      • henrycortezwu@gmail.com

        #4
        Re: Programming with Outlook

        Thanks for the quick reply,
        I guess I'll have to do a late bind of the Outlook object instead.

        Thanks again!!
        Henry :)

        Cor Ligthert [MVP] wrote:[color=blue][color=green]
        > > Hi All,
        > > I'm thinking of including this method of sending attachments using
        > > the code in the link below, it uses Outlook Objects.
        > >
        > > How to send attachments in an e-mail message by using Visual Basic .NET
        > > http://support.microsoft.com/default...b;en-us;313803
        > >
        > > Several Questions,
        > > 1) When I create the Setup Program for my application is it legally
        > > right to include the Outlook dll?
        > >[/color]
        >
        > No it is illegal
        >
        > Does this than answer the rest of your questions as well.
        >
        > Cor[/color]

        Comment

        • Paul Clement

          #5
          Re: Programming with Outlook

          On 23 Jul 2005 20:49:22 -0700, henrycortezwu@g mail.com wrote:

          ¤ Hi All,
          ¤ I'm thinking of including this method of sending attachments using
          ¤ the code in the link below, it uses Outlook Objects.
          ¤
          ¤ How to send attachments in an e-mail message by using Visual Basic .NET
          ¤ http://support.microsoft.com/default...b;en-us;313803
          ¤
          ¤ Several Questions,
          ¤ 1) When I create the Setup Program for my application is it legally
          ¤ right to include the Outlook dll?
          ¤

          No.

          ¤ 2) If a client w/o MS Outlook uses my app, will the applicaton fail to
          ¤ "launch" from the start, or just the "form" that uses the outlook dll?
          ¤

          Not if you use late binding, which you should use if you're supporting multiple versions of Outlook.

          ¤ 3) I plan to use Outlook Object 10 instead of 11, will version 10 work
          ¤ with clients with Outlook 2003?
          ¤

          Probably, but you should always develop for the oldest version supported.

          ¤ 4) Is it possible to "catch" clients w/o Outlook installed?
          ¤

          Yes. You can check if Outlook has been installed using API function calls, such as FindExecutable,
          or trap the error that occurs when you attempt to create the Outlook object.

          ¤ 5) Is it possible to "catch" clients w/ incompatible versions of
          ¤ Outlook, say Outlook 98, if I decided to use Outlook XP dll or version
          ¤ 10?

          Probably. The most reliable method would be to find the Outlook executable (using FindExecutable)
          and then retrieve the version info. Below is an example:

          Declare Function FindExecutable Lib "shell32.dl l" Alias "FindExecutable A" (ByVal lpFile As
          String, _
          ByVal lpDirectory As
          String, _
          ByVal lpResult As
          System.Text.Str ingBuilder) As Int32

          Function IsOutlookInstal led(ByRef FileVersionMajo r As String) As Boolean

          Dim DummyFile As String
          Dim FileDir As String

          Dim FilePath As New System.Text.Str ingBuilder(255)
          DummyFile = "e:\My Documents\dummy .fav"

          If FindExecutable( DummyFile, FileDir, FilePath) > 32 Then
          Console.WriteLi ne(FilePath)
          IsOutlookInstal led = True
          FileVersionMajo r =
          System.Diagnost ics.FileVersion Info.GetVersion Info(FilePath.T oString).FileMa jorPart
          End If

          End Function


          IsOutlookInstal led(FileVersion Major)



          Paul
          ~~~~
          Microsoft MVP (Visual Basic)

          Comment

          Working...