Problems sending a fax

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jon Dempsey

    Problems sending a fax

    I am trying to get a faxing routine working, but I cannot get past the error

    An unhndled exception of the type
    'System.Runtime .InteropService s.COMException' occurred in
    microsoft.visua lbasic.dll
    Additional information: The data is invalid.



    The code I am using is

    Dim fxServer As Object

    Dim fxDoc As Object

    '

    fxServer = CreateObject("F axserver.Faxser ver")

    fxServer.connec t("SERVER")

    fxDoc = fxServer.create document("D:\Te st1.fax")

    fxDoc.faxnumber = "0123456789 "

    fxDoc.send()



    Does anyone have any ideas.



    Thanks


  • Herfried K. Wagner [MVP]

    #2
    Re: Problems sending a fax

    "Jon Dempsey" <jon.dempsey@mi nes_a_beer.com> schrieb:[color=blue]
    >I am trying to get a faxing routine working, but I cannot get past the
    >error
    >
    > An unhndled exception of the type
    > 'System.Runtime .InteropService s.COMException' occurred in
    > microsoft.visua lbasic.dll
    > Additional information: The data is invalid.[/color]

    Which line causes the exception?

    --
    M S Herfried K. Wagner
    M V P <URL:http://dotnet.mvps.org/>
    V B <URL:http://classicvb.org/petition/>

    Comment

    • Jon Dempsey

      #3
      Re: Problems sending a fax

      It's the fxDoc.Send method that causes the error

      Regards

      Jon

      "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
      news:O7ngmag3FH A.1420@TK2MSFTN GP09.phx.gbl...[color=blue]
      > "Jon Dempsey" <jon.dempsey@mi nes_a_beer.com> schrieb:[color=green]
      >>I am trying to get a faxing routine working, but I cannot get past the
      >>error
      >>
      >> An unhndled exception of the type
      >> 'System.Runtime .InteropService s.COMException' occurred in
      >> microsoft.visua lbasic.dll
      >> Additional information: The data is invalid.[/color]
      >
      > Which line causes the exception?
      >
      > --
      > M S Herfried K. Wagner
      > M V P <URL:http://dotnet.mvps.org/>
      > V B <URL:http://classicvb.org/petition/>[/color]


      Comment

      • Jon Dempsey

        #4
        Re: Problems sending a fax

        Sorted Now,

        Thanks Herfried


        "Jon Dempsey" <jon.dempsey@mi nes_a_beer.com> wrote in message
        news:dk5lv3$jaj $1$8300dec7@new s.demon.co.uk.. .[color=blue]
        > It's the fxDoc.Send method that causes the error
        >
        > Regards
        >
        > Jon
        >
        > "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
        > news:O7ngmag3FH A.1420@TK2MSFTN GP09.phx.gbl...[color=green]
        >> "Jon Dempsey" <jon.dempsey@mi nes_a_beer.com> schrieb:[color=darkred]
        >>>I am trying to get a faxing routine working, but I cannot get past the
        >>>error
        >>>
        >>> An unhndled exception of the type
        >>> 'System.Runtime .InteropService s.COMException' occurred in
        >>> microsoft.visua lbasic.dll
        >>> Additional information: The data is invalid.[/color]
        >>
        >> Which line causes the exception?
        >>
        >> --
        >> M S Herfried K. Wagner
        >> M V P <URL:http://dotnet.mvps.org/>
        >> V B <URL:http://classicvb.org/petition/>[/color]
        >
        >[/color]


        Comment

        Working...