Send Fax using vb.net - Problem

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
I tried this code to send fax by vb.net 2008 and it show me this error
error number 35, peration failed

<div style="color:Black;background-color:White; <pre>
<span style="color:Blue; Dim objFaxDocument <span style="color:Blue; As <span style="color:Blue; New FAXCOMEXLib.FaxDocument
<span style="color:Blue; Dim objFaxServer <span style="color:Blue; As <span style="color:Blue; New FAXCOMEXLib.FaxServer
<span style="color:Blue; Dim objSender <span style="color:Blue; As FAXCOMEXLib.FaxSender = <span style="color:Blue; Nothing
<span style="color:Blue; Dim JobID <span style="color:Blue; As <span style="color:Blue; Object


objFaxServer.Connect(<span style="color:#A31515; "")
objFaxDocument.Body = <span style="color:#A31515; "My Text"
objFaxDocument.DocumentName = <span style="color:#A31515; "My First Fax"
objFaxDocument.Recipients.Add(<span style="color:#A31515; "My number", <span style="color:#A31515; "Bud")
objFaxDocument.AttachFaxToReceipt = <span style="color:Blue; True
objFaxDocument.Note = <span style="color:#A31515; "Here is the info you requested"
objFaxDocument.Subject = <span style="color:#A31515; "Todays fax"
JobID = objFaxDocument.ConnectedSubmit(objFaxServer)
MsgBox(<span style="color:#A31515; "The Job ID is :" & JobID(0))


<span style="color:Blue; Catch ex <span style="color:Blue; As Exception
MsgBox(<span style="color:#A31515; "Error number: " & Hex(Err.Number) & <span style="color:#A31515; ", " & Err.Description)
[/code]
<br/>
<br/>


View the full article
 
Back
Top