I want to send fax from vb.net application to remote rightfax server. I have added reference to Rightfax COM API 1.0 type library(RFCOMAPILib.dll) and am using the following code.
Dim newFax As RFCOMAPILib.Fax
Dim FaxAPI As RFCOMAPILib.FaxServer
FaxAPI = New FaxServer
FaxAPI.ServerName = strServerName
FaxAPI.Protocol = 4
FaxAPI.AuthorizationUserID = strUserName
FaxAPI.AuthorizationUserPassword = strPswd
FaxAPI.UseNTAuthentication = True
newFax = FaxAPI.CreateObject(RFCOMAPILib.CreateObjectType.coFax)
newFax.ToName = "XXX"
newFax.ToFaxNumber = strFaxNo
newFax.Attachments.Add("C:\Testfax.doc", RFCOMAPILib.BoolType.False)
newFax.Send()
on executing the code at line FaxAPI = New FaxServer following exception is thrown
System.Runtime.InteropServices.COMException (0x80070485): One of the library files needed to run this application cannot be found.
Do I need to add some other dll or install anything additional. Please advise. This is very urgent.
Regards
Dim newFax As RFCOMAPILib.Fax
Dim FaxAPI As RFCOMAPILib.FaxServer
FaxAPI = New FaxServer
FaxAPI.ServerName = strServerName
FaxAPI.Protocol = 4
FaxAPI.AuthorizationUserID = strUserName
FaxAPI.AuthorizationUserPassword = strPswd
FaxAPI.UseNTAuthentication = True
newFax = FaxAPI.CreateObject(RFCOMAPILib.CreateObjectType.coFax)
newFax.ToName = "XXX"
newFax.ToFaxNumber = strFaxNo
newFax.Attachments.Add("C:\Testfax.doc", RFCOMAPILib.BoolType.False)
newFax.Send()
on executing the code at line FaxAPI = New FaxServer following exception is thrown
System.Runtime.InteropServices.COMException (0x80070485): One of the library files needed to run this application cannot be found.
Do I need to add some other dll or install anything additional. Please advise. This is very urgent.
Regards