问题描述
我的代码-
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
推荐答案
这篇关于在C#项目中发送传真,需要在PC上安装调制解调器才能在网络中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!