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.FaxServerfxsvr.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()
How to setup the faxserver
smarlowe
This might provide a clue.
http://www.pcreview.co.uk/forums/thread-1477613.php
"FAXCOMLib cannot be used to send faxes via the remote server. For local
server you can leave the server name string as blank. If you want to connect
to remote server and send a fax please make use of Extended COM APIs. For
further details on extended COM Apis see
http://msdn.microsoft.com/library/d...inta_n_7e05.asp."
As it looks like you are specifying a remote machine on the line
fxsvr.Connect("\\exchaneg\lightingFax")
http://msdn.microsoft.com/library/d...inta_n_7e05.asp."
As it looks like you are specifying a remote machine on the line
fxsvr.Connect("\\exchaneg\lightingFax")