在C#项目中发送传真,需要在PC上安装调制解调器才能在网络中 [英] sending fax in c# project it need to install modem on pc can be in network
问题描述
我的代码-
public int FaxDocument(字符串文件名,字符串传真号)
{
FaxServerClass FaxServerClass =新的FaxServerClass();
FaxDoc FaxDocClass = null;
//FaxServerClass.Connect(Environment.MachineName);
FaxServerClass.Connect(");
FaxDocClass =(FaxDoc)FaxServerClass.CreateDocument(filename);
FaxDocClass.FaxNumber =传真号码;
FaxDocClass.SenderName ="pidex";
FaxDocClass.DisplayName =这是传真文档";
FaxDocClass.RecipientName ="pidex";
int Response = FaxDocClass.Send();
FaxServerClass.Disconnect();
返回响应;
}
此代码符合预期-对象标识符不代表有效的对象. (来自HRESULT的异常:0x800710D8)
我已经安装了传真服务,我还需要什么
请帮助我
my code -
public int FaxDocument(string filename,string faxnumber)
{
FaxServerClass FaxServerClass = new FaxServerClass();
FaxDoc FaxDocClass = null;
//FaxServerClass.Connect(Environment.MachineName);
FaxServerClass.Connect("");
FaxDocClass = (FaxDoc)FaxServerClass.CreateDocument(filename);
FaxDocClass.FaxNumber = faxnumber;
FaxDocClass.SenderName = "pidex";
FaxDocClass.DisplayName = "This is fax Document";
FaxDocClass.RecipientName = "pidex";
int Response=FaxDocClass.Send();
FaxServerClass.Disconnect();
return Response;
}
this code give expection-The object identifier does not represent a valid object. (Exception from HRESULT: 0x800710D8)
i have install fax services ,what i else need
please help me
推荐答案
这表明您用于发送传真的第三方库无法启动,原因是:
1.它没有重新挂载/未安装在您的系统上.
2.第三方库使用的其他组件未安装.
有大量的应用程序可以帮助您找到lib需要的依赖项...
在这里看看一些有用的工具...
SysInternals
``listdlls''和``procexp''可能有用...
================================================== ================================================== ===================
您需要确保该组件已在系统上注册.将regsvr32与lib一起使用将对其进行注册.
用谷歌搜索regsvr32 ....
================================================== ================================================== ====================
遵循步骤
首先,我不知道您的库的可执行文件名称是什么,因此您必须自己填写一下...
1.打开一个cmmand窗口
2.转到库exe所在的目录.
3.运行regsvr32.exe,例如regsvr32/i
这将弹出一个消息框,指示是否成功.如果未成功,那么我建议您返回库的供应商并获取正确的安装说明...
This is indicating that the 3rd party lib that you are using to send the fax cannot be started because:
1. It isn''t resigered / installed on your system.
2. Some other component the third party lib uses is not installed.
There are a whole raft of app that will help you find what dependencies the lib requires...
Take a look here for some useful utils...
SysInternals
''listdlls'' and ''procexp'' may be useful...
========================================================================================================================
you need to ensure that the component has been registered on the system. Using regsvr32 with the lib will register it.
Do a google search for regsvr32....
=========================================================================================================================
steps follow it
first off I don''t know what the executable name is of your library so you''ll have to fill that bit in yourself...
1. Open a cmmand window
2. Go to the directory where the library exe is.
3. Run regsvr32.exe e.g. regsvr32 /i
this will pop up a messagebox indicating whether this has succeeded or not.. If it hasn''t succeeded then I suggest you going back to the vendor of the library and get proper installation instructions...
有关更多详细信息,请登录以下
请参考链接.
http://www.interfax.net/en/dev/asp
http://www.interfax.net/en/dev/webservice/samples/fax_asp_net_sendcharfax
http://www.java4less.com/fax_dotnet.htm
你会得到一些想法
祝您编码愉快!干杯............
for more details log on to following
Please refer the links.
http://www.interfax.net/en/dev/asp
http://www.interfax.net/en/dev/webservice/samples/fax_asp_net_sendcharfax
http://www.java4less.com/fax_dotnet.htm
u wil, get some ideas
happy coding! cheers............
取消此链接可能对您有帮助
http://forums.asp.net/t/1619757.aspx/1?obtuse+COM+errors+when+trying+to+deploy+a+windows+service
ceck out this link this might help u
http://forums.asp.net/t/1619757.aspx/1?obtuse+COM+errors+when+trying+to+deploy+a+windows+service
这篇关于在C#项目中发送传真,需要在PC上安装调制解调器才能在网络中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!