I am able to fax from my Access application, providing I have the fax modem / driver located on the local workstation. I reference the Faxcom 1.0 Type Library, and the code I use is shown below. It works great providing that I am running it from a workstation with the fax server located on it, and the ServerName parameter is set to this workstation. When I attempt to fax "over the network", I get a "method connect of object ifaxserver failed 80004005 ...." type error.
Does anyone have any simple suggestions on how I can fax over the network from within Access. What other drivers / options are available to do this. Perhaps there is a way to modify my existing code to achieve this?
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
[tt]
Public Function SendFaxviaFaxServer(ServerName, _
FaxSenderCompany, _
FaxSenderName, FaxSenderFax, _
FaxCoverPageName, _
FaxCoverPageSubject, _
FaxCoverPageNote, _
FaxNumber, FaxRecipient, FaxDocument)
'-------------------------------------------------------------------------------
'This function generates a fax from a file, to a specific fax number.
'It relies on a Fax Server being installed, plus the associated fax
'modem being operational.
'-------------------------------------------------------------------------------
Dim FS As FaxServer: Set FS = CreateObject("FaxServer.FaxServer"
Dim FD As FaxDoc
Set FD = FS.CreateDocument(FaxDocument)
FD.SendCoverpage = True
FD.CoverpageName = FaxCoverPageName
FD.CoverpageNote = FaxCoverPageNote
FD.CoverpageSubject = FaxCoverPageSubject
FD.FaxNumber = FaxNumber
FD.RecipientName = FaxRecipient
FD.SenderCompany = FaxSenderCompany
FD.SenderName = FaxSenderName
FD.SenderFax = FaxSenderFax
FS.Connect ServerName
FD.Send
FS.Disconnect
Set FD = Nothing
Set FS = Nothing
End Function
[/tt]
Any help would be appreciated,
Thanks in advance,
Steve Lewy
Solutions Developer
steve@lewycomputing.com.au
(dont cut corners or you'll go round in circles)
Does anyone have any simple suggestions on how I can fax over the network from within Access. What other drivers / options are available to do this. Perhaps there is a way to modify my existing code to achieve this?
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
[tt]
Public Function SendFaxviaFaxServer(ServerName, _
FaxSenderCompany, _
FaxSenderName, FaxSenderFax, _
FaxCoverPageName, _
FaxCoverPageSubject, _
FaxCoverPageNote, _
FaxNumber, FaxRecipient, FaxDocument)
'-------------------------------------------------------------------------------
'This function generates a fax from a file, to a specific fax number.
'It relies on a Fax Server being installed, plus the associated fax
'modem being operational.
'-------------------------------------------------------------------------------
Dim FS As FaxServer: Set FS = CreateObject("FaxServer.FaxServer"
Dim FD As FaxDoc
Set FD = FS.CreateDocument(FaxDocument)
FD.SendCoverpage = True
FD.CoverpageName = FaxCoverPageName
FD.CoverpageNote = FaxCoverPageNote
FD.CoverpageSubject = FaxCoverPageSubject
FD.FaxNumber = FaxNumber
FD.RecipientName = FaxRecipient
FD.SenderCompany = FaxSenderCompany
FD.SenderName = FaxSenderName
FD.SenderFax = FaxSenderFax
FS.Connect ServerName
FD.Send
FS.Disconnect
Set FD = Nothing
Set FS = Nothing
End Function
[/tt]
Any help would be appreciated,
Thanks in advance,
Steve Lewy
Solutions Developer
steve@lewycomputing.com.au
(dont cut corners or you'll go round in circles)