How to fax remotely through VB
Can anyone tell how to fax a file by using VB application remotely. I've installed WinFax on both fax host computer and fax client computer. My VB application will be run on the fax client computer. Both the computers have window 2000.
My code is here:
Dim FS As New FAXCOMLib.FaxServer
Dim FD As New FAXCOMLib.FaxDoc
Dim lngcount As Long
FS.Connect (txtClientMachine.text) ' My Computer's name
NomeFile = "c:\test.txt"
Set FD = FS.CreateDocument(NomeFile)
FD.FileName = NomeFile
FD.FaxNumber = txtfaxno.Text ' Phony number
FD.DisplayName = txtfaxno.Text
FD.DiscountSend = 0
FD.SendCoverpage = 0
FD.Send
FS.Disconnect
Set FD = Nothing
Set FS = Nothing
MsgBox "Fax send successfully"
When I run the code, the msgbox appears, that means fax send successfully. But when I check the winfax pro message manager, nothing was sent. Then I found the file was send to "Fax" instead of "WinFax".
Can anyone tell me what's wrong with my settings?
Thanks in advance:o :o
Re: How to fax remotely through VB
Ho, ho, ho!
It's an old thread, but I'll close it.
JDC, you are not faxing using WinFax. You are faxing using MSFax. That code is for MSFax. WinFax objects all look like this "WinFax.something".
MSFax is an optional component with Windows installations, and you can find it in Start/Programs/Accessories/Fax menu.