Click here to Skip to main content
15,902,870 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
finaly I could send fax via following code It works fine,now I want to receive fax with vb code when I click a receive button in my application but I do not know how I can do it

VB
'this is sending code:
Private Sub Buttonsend_Click(sender As Object, e As EventArgs) Handles Buttonsend.Click
   Try
      Dim objFaxDocument As New FAXCOMEXLib.FaxDocument
      Dim objFaxServer As New FAXCOMEXLib.FaxServer
      Dim objSender As FAXCOMEXLib.FaxSender = Nothing
      Dim JobID As Object

      'Connect to the local fax machine
      objFaxServer.Connect("") 'Change to //ComputerName if access a fax sever

      'Set high priority for bigger files
      objFaxDocument.Priority = FAXCOMEXLib.FAX_PRIORITY_TYPE_ENUM.fptHIGH

      'Set the body text of the fax to a file
      objFaxDocument.Body = "c:\New Microsoft Office Word Document.docx"

      'The Faxes document name
      objFaxDocument.DocumentName = "My First Fax"

      'Set the recipient of the fax
      objFaxDocument.Recipients.Add("1111111", "the")
      objFaxDocument.AttachFaxToReceipt = True

      'Any notes for the fax
      objFaxDocument.Note = "first text fax of the day in vb"

      'Fax Subject
      objFaxDocument.Subject = "testing fax system in vb"

      'Provide the address for the fax receipt 
      objFaxDocument.ReceiptAddress = "*********@yahoo.com"

      JobID = objFaxDocument.ConnectedSubmit(objFaxServer)
      MsgBox("The Job ID is :" & JobID(0))

   Catch ex As Exception
      MsgBox("Error number: " & Hex(Err.Number) & ", " & Err.Description)
   End Try
End Sub


now how can I receive fax inside my application?
can anyone assistance me?
thanks.
Posted
Updated 3-Jan-14 23:34pm
v3
Comments
Nelek 4-Jan-14 5:37am    
Code block added, indexation adjusted
Angela 10293848 4-Jan-14 6:34am    
thanks for your update;)
Nelek 4-Jan-14 6:39am    
You are welcome. You can always correct / change your own messages. To do that you can use the "improve question" widget.
Angela 10293848 4-Jan-14 7:12am    
ok thanks, is there a solution for this question? I didi not find any solition in google
Nelek 4-Jan-14 8:02am    
I can't imagine that there is no solution for that, but this is out of my scope. I can not help you more than searching in Google. I am very bad in VB, sorry

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900