Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connect to Fax Server With a Variable as the Server Name

Status
Not open for further replies.

Auguy

Programmer
May 1, 2004
1,206
US
I'm successfully faxing from my app using a fax server on the network server. Now I want to change the ServerName in the Connect() to a variable so I can use different servers. Here's my code
Code:
Dim oFaxServer As New FAXCOMEXLib.FaxServer
Dim oFaxDocument As New FAXCOMEXLib.FaxDocument
Dim oJobID As Object
Dim sRealJobId As String

Try
  oFaxServer = New FAXCOMEXLib.FaxServer

  ' Connect to the fax server
  If gSystemLoc = "Local" Then
    oFaxServer.Connect("")
  Else
    oFaxServer.Connect("\\Server02")
  End If
  ... Everything else from here on works fine
The Server Name within the Connect() is supposed to be a "bstrServerName as String", but i cannot figure out how to change my server names (strings) into the bstr.

Auguy
Sylvania/Toledo Ohio
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top