How to setup the faxserver

I am trying to send a fax and I did find the code to do that but whne I hit fxdoc.Send, it gives me an error saying "Invalid handle".

I assume I am not connecting to the server correctly.

fax modem is installed on the server whose name is "exchange"and the fax printer name is "lightingFax".

Thanks for all your help.

Dim fxsvr As New FAXCOMLib.FaxServer

fxsvr.Connect("\\exchaneg\lightingFax")

Dim fxdoc As FAXCOMLib.FaxDoc = fxsvr.CreateDocument("c:\faxtestpage.txt")

Dim ret As Integer

fxdoc.FileName = Filename.Text

fxdoc.FaxNumber = FaxNo.Text 'is in the format 16312420056

fxdoc.RecipientName = "Carol"

ret = fxdoc.Send()

fxsvr.Disconnect()



Answer this question

How to setup the faxserver