Robby I figured it out.
Jast adding Print dialog and selecting WinFax from the combo with instaled printers solves the problem.
I thought it would be much harder so I asked for help.
How to send WinFax Pro faxes using VB 6 or VB .NET from a WinFax Pro client to a WinFax Pro Server
Start a project.
Open a form
Reference the winfax.dll in your system 32 directory
In VB 6 use this code:
Dim sendObj As Object
Private Sub Form_Load()
Set sendObj = CreateObject("WinFax.SDKSend8.0")
sendObj.SetCompany ("AAA Energy Co.")
sendObj.SetTo ("john smith")
sendObj.SetSubject ("Test Faxing")
sendObj.SetCoverFile ("C:\DLoad\BASIC1.CVP")
sendObj.SetCoverText ("Test of cover Page")
sendObj.SetUseCover (1)
sendObj.AddAttachmentFile ("c:\DLoad\License.txt")
sendObj.SetNumber ("1112121")
sendObj.AddRecipient
sendObj.Send (0)
sendObj.Done
In VB . Net use this code:
Imports wfxctl32.COleWinFaxAppClass
Imports wfxctl32.CSDKSendClass
Imports wfxctl32.COleAttachmentsClass
Dim sendObj As New wfxctl32.CSDKSend()
sendObj.SetCompany("AAA Energy Co.")
sendObj.SetTo("Brian Hall")
sendObj.SetSubject("Test UDC Faxing")
sendObj.SetCoverFile("C:\DLoad\BASIC1.CVP")
sendObj.SetCoverText("Test of cover Page")
sendObj.SetUseCover(1)
sendObj.AddAttachmentFile("c:\DLoad\License.txt")
sendObj.SetNumber("3271407")
sendObj.AddRecipient()
sendObj.Send(0)
sendObj.Done()
I tried the VB .Net example code and it works. One big problem though. The Print dialog appears and you have to click the [Print] button to continue the process. This is a show stopper as Im looking for a "hands-off / totally automated" approach. Any suggestions?
I do see a window pop-up but then it goes away. I dont have to touch anything for the fax to go thru. I have the winfax client on my desktop and the winfax server on a 2K server. Not sure why you have to click print.
Dim sendObj As New wfxctl32.CSDKSend()
sendObj.SetCompany("AAA Energy Co.")
sendObj.SetTo("Namel")
sendObj.SetSubject("Test UDC Faxing")
sendObj.AddAttachmentFile("C:\faxdoc \Confirmation.rtf")
sendObj.SetNumber("5556666")
sendObj.AddRecipient()
sendObj.Send(0)
sendObj.Done()
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.