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
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
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
Auguy
Sylvania/Toledo Ohio