将 RightFax 与 .NET/C# 集成有多容易?我们也在考虑 FaxMan、Windows Fax Server,但我们遇到了 RightFax。我们基本上需要能够通过 .NET 应用程序发送传真、监控状态等。

最佳答案

下面是一些使用 Right Fax COM API 库 (rfcomapi.dll) 从 this other answer 发送传真的 RightFax 示例代码。

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 = "John Doe";
fax.ToFaxNumber = "4255551111";
fax.ToVoiceNumber = "4255550000";
fax.ToCompany = "ACME";
fax.FromName = "My Company";
fax.FromVoiceNumber = "4255552222";

fax.Send();

关于c# - RightFax 和.NET?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/3679402/

10-11 10:55