我们正在尝试使用以下代码使用 RFCOMAPILIb.dll 发送传真(我们从堆栈溢出本身获取示例)
RFCOMAPILib.FaxServerClass faxserver = new RFCOMAPILib.FaxServerClass();
faxserver.ServerName = "ServerName";
faxserver.Protocol = RFCOMAPILib.CommunicationProtocolType.cpNamedPipes;
faxserver.UseNTAuthentication = RFCOMAPILib.BoolType.True;
faxserver.OpenServer();
RFCOMAPILib.Fax fax = (RFCOMAPILib.Fax) faxserver.get_CreateObject(RFCOMAPILib.CreateObjectType.coFax);
// set up your 'fax' object the way you want it, below is just some sample options
fax.ToName = "dummy";
fax.ToFaxNumber = "dummy";
fax.ToVoiceNumber = "dummy";
fax.ToCompany = "dummy";
fax.FromName = "My Company";
fax.FromVoiceNumber = "dummy";
fax.Send();
string status=fax.faxstatus.tostring();
我们收到的传真状态为 110。用户无法接收传真。
知道可能是什么问题。我们是否需要在客户端机器上安装任何特定于正确传真的软件。有趣的是,在同一台机器上,我们可以使用安装 Right Fax 客户端后提供的 UI 发送传真,因此我们认为端口、防火墙等没有任何问题。任何帮助将不胜感激。