Dear ALL,
I am trying to work with FAXCOM.dll to send fax. But here i am getting an error at send() function.
Here is the code:
-----------------------
FAXCOMLib.FaxServer fxsrv = new FAXCOMLib.FaxServer();
FAXCOMLib.FaxDoc fxdoc = (FAXCOMLib.FaxDoc)fxsrv.CreateDocument("fbharath.t xt");
try
{
fxsrv.Connect(Environment.MachineName);
}
catch(Exception ex)
{
String str=ex.Message;
Response.Write("<script>alert('Error in the application : "+ex.Message+"');</script>");
return;
}
fxdoc.FileName = "fbharath.txt";
fxdoc.FaxNumber = "914023391105";
fxdoc.RecipientName = "Bharath Reddy VasiReddy";
try
{
fxdoc.Send(); //here i am getting error : The object identifier does not represent a valid object.
}
catch(Exception ex)
{
string str= ex.Message;
Response.Write("<script>alert('Error in the application : "+ex.Message+"');</script>");
return;
}
fxsrv.Disconnect();
Note:
Error Location send() function
Error Message: The object identifier does not represent a valid object. Exception from HRESULT : 0x800710D8
Thanking you in advance. Please if any one want to answer to this mail me to:
Thanks & Regs
Bharath Reddy VasiRedy
[email removed]