Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hia All,

I need some help creating faxes through VB.Net.

 

Now, I've gathered the the function to send faxes will resemble something like this:

 

Private Sub CreateFax()

Try
           Dim objFaxDocument As New FAXCOMEXLib.FaxDocument
           Dim objFaxServer As New FAXCOMEXLib.FaxServer
           Dim JobID As Object

           objFaxServer.Connect("bhm-lapt")
           objFaxDocument.Body = "C:\Dev\Test.txt"
           objFaxDocument.DocumentName = "My First Fax"
           'objFaxDocument.Recipients.Add("0866953105", "Bud")
           objFaxDocument.Recipients.Add("0123456989", "Barend")
           objFaxDocument.AttachFaxToReceipt = True
           objFaxDocument.Note = "Here is the info you requested"
           objFaxDocument.Subject = "Today's fax"
           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

 

 

Firstly, I found that I require the fxscomex.dll in order to use the FAXCOMEXLib. Sadly this dll was nowhere to be found on my system.

 

Then I found out that I need to create a Fax Account before the fxscomex.dll will be created.

 

So finally in attempting to Create a fax account, I found to my disgust that nothing resembling a Fax Account/Fax Service setup existed on my system (Windows Vista Home Premium). The Menu Item Windows Scan and Fax does not exist.:confused:

 

I then thought perhaps it's a Windows Program that needs to be installed under Add/Remove Windows Features...but no.

 

If anyone can help me out with this I would truly appreciate it!

 

P.S. I was able to create a fax onther machine (XP), but the fax remains in my outbox stating that No dial tone was found...

 

Thanks in advance for any help.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...