cossy74
asked on
Sending a Fax using VB on XP
Hi,
i have this code
Public Sub SendFax()
Dim FaxServer As Object
Dim FaxDoc As Object
Set FaxServer = CreateObject("Faxserver.Fa xServer")
'Create FaxServer object...
'<---This line does not produces an error.
If (FaxServer.Connect("Fax")) Then
MsgBox "Failed to connect"
End If
'Create document
Dim FaxFile As String
FaxFile = "C:\Work\Projects\Serck Controls\Vb\FaxSender\Mess age.txt"
Set FaxDoc = FaxServer.CreateDocument(F axFile)
FaxDoc.FaxNumber = "0,49543543"
FaxDoc.RecipientName = "John Doe"
Dim iReturn As Integer
iReturn = FaxDoc.Send '<--- Failed to Send
FaxDoc = Nothing
FaxServer.Disconnect
FaxServer = Nothing
End Sub
I have referenced the fxscom.dll but it fails to send can anyone help?
Do i have to set anything up in the xp enviroment?
i have this code
Public Sub SendFax()
Dim FaxServer As Object
Dim FaxDoc As Object
Set FaxServer = CreateObject("Faxserver.Fa
'Create FaxServer object...
'<---This line does not produces an error.
If (FaxServer.Connect("Fax"))
MsgBox "Failed to connect"
End If
'Create document
Dim FaxFile As String
FaxFile = "C:\Work\Projects\Serck Controls\Vb\FaxSender\Mess
Set FaxDoc = FaxServer.CreateDocument(F
FaxDoc.FaxNumber = "0,49543543"
FaxDoc.RecipientName = "John Doe"
Dim iReturn As Integer
iReturn = FaxDoc.Send '<--- Failed to Send
FaxDoc = Nothing
FaxServer.Disconnect
FaxServer = Nothing
End Sub
I have referenced the fxscom.dll but it fails to send can anyone help?
Do i have to set anything up in the xp enviroment?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Sorry, i went away on holidays an got back this morning.
Crisy56: No the problem exists because to solutions require exchange which i donot have.
If i have read these answer wrongly please advise.
Crisy56: No the problem exists because to solutions require exchange which i donot have.
If i have read these answer wrongly please advise.
Cristy