469,290 Members | 1,913 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,290 developers. It's quick & easy.

FAXCOM.dll

111 100+
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]
May 17 '07 #1
7 8409
bharathreddy
111 100+
hai all,

The problem was solved but i dont know weather the fax is sent succesfully or not. What does this send() function return and how can we know the fax is been sent succesfully.


Thanks in advance


Bharath Reddy VasiReddy
eXensys
May 22 '07 #2
dixonjm
32
How did you resolve this issue as I have exactly the same problem!

Thanks
Janet
Aug 20 '07 #3
chapsi
1
Hi,

I am having the same problem too. Did anyone resolve this and if so how ? I am getting the following error message at the send() line.

The object identifier does not represent a valid object. Exception from HRESULT : 0x800710D8 ...

Thanks
Chapsi






How did you resolve this issue as I have exactly the same problem!

Thanks
Janet
Sep 24 '07 #4
Hi Folks,

ANSWER:-
TO find out of the Send() worked, you can set it to an integer value:-
int x = Doc.Send()
Okay I gave an answer, but I have a question, how did you get it to work.

QUESTION:-
I have the same issue, Im getting an error in the Send()
System.Runtime.InteropServices.COMException was unhandled by user code
Message="The object identifier does not represent a valid object. (Exception from HRESULT: 0x800710D8)"
Source="Interop.FAXCOMLib"
ErrorCode=-2147020584
StackTrace:
at FAXCOMLib.IFaxDoc.Send()

Jeba Shaker
jshaker@gmail.com / shaker@earth.us
Thanks
May 21 '08 #5
Plater
7,872 Expert 4TB
We have two articles written by bharathreddy, on faxing that may be of some help to you all:
Sending a fax:
http://bytes.com/forum/thread668653.html

Finding the status of a fax:
http://bytes.com/forum/thread650334.html
May 21 '08 #6
Hi ,

I tried using your code, getting the same error
"The object identifier does not represent a valid object. (Exception from HRESULT: 0x800710D8)"

To send a fax from my application, is the modem installation is mandatory ?

Thanks in advance. a rply would be really appericated.
Jun 21 '08 #7
bharathreddy
111 100+
Hi,
There are many reason why this error will come.

1) You should have a public IP
2) You should have a modem connected to your system.
3) Second thing is from where you are diling, see if there is any code for STD before you type the fax number.
4) Please see my posting "How to check the status of the fax operation" weather it is send succesfully or not.

Thanks & Regards
Bharath Reddy VasiReddy

Hi ,

I tried using your code, getting the same error
"The object identifier does not represent a valid object. (Exception from HRESULT: 0x800710D8)"

To send a fax from my application, is the modem installation is mandatory ?

Thanks in advance. a rply would be really appericated.
Jul 3 '08 #8

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Suresh | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.