sending fax using rightfax

Sumi

New member
Joined
Feb 19, 2007
Messages
1
Programming Experience
3-5
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
 
Have ou Tried the rfwin32.dll ?

I think you might need the rfwin32.dll as well as the rfcomapi.dll.
Also, did you run regsvr32 on the rfcomapi.dll to register it on your development box?
 
Back
Top