Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

faxing without user input

Status
Not open for further replies.

rds747

Technical User
Joined
Mar 8, 2005
Messages
180
Location
US
Hi,

I posted this message in the vb6 forum group, but haven't had any luck with a reply. I need to allow a user to fax a report directly to the canon fax. The approach I'm trying is adding the "MS Fax Extended Service Com Type Library", FaxCom, and FaxControl 1.0 Type Library References. From code that I found on the msdn website this is what I have so far:

Code:
Dim objFaxServer As faxcomexlib.FaxServer
Dim objFaxDocument As faxcomexlib.FaxDocument
Dim jobid As Variant
    Set objFaxServer = New faxcomexlib.FaxServer
    Set objFaxDocument = New faxcomexlib.FaxDocument
    objFaxServer.Connect "\\Svrapps"
    objFaxDocument.Body = "C:\Test.txt"
    objFaxDocument.Recipients.Add "fax #", "Test"
    jobid = objFaxDocument.Submit(objFaxServer)
The error I receive is on the Connect property stating the "Connection to fax server failed". The fax is set up on the Svrapps computer and I have access it from my PC.

Thanks for the help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top