将RightFax与.NET/C#集成有多容易?我们也在考虑FaxMan,Windows Fax Server,但我们遇到了RightFax。我们基本上需要能够通过.NET应用程序发送传真,监控状态等。
发布于 2010-09-10 02:34:06
下面是使用正确的Fax COM API Library (rfcomapi.dll)从this other answer发送传真的一些示例代码。
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();发布于 2010-10-20 00:51:34
fuel9提供了一个支持windows传真服务器的通知框架,称为回旋棒。该框架有一个数据库接口,因此它支持.Net和任何其他可以连接到数据库服务器的东西。我看到他们也在开发Rightfax扩展,但我们的基础设施中只有MS fax。Boomerang对我们来说一直工作得很好,只需要很少的sql语句就可以创建一个自动化的传真(或电子邮件,打印,ftp等)解决方案。
/B
发布于 2010-09-10 02:28:10
还可以考虑在Windows中使用传真服务。Using Windows Fax Service to Send Fax using C#
using FAXCOMLib;
using FAXCOMEXLib;
FaxServerClass fs = new FaxServerClass();
fs.Connect(“<your_computer_name>”); //specifies the machinename
object obj = fs.CreateDocument(“<your_filename>”);
FaxDoc fd = (FaxDoc)obj;
fd.FaxNumber = “<your_fax_number_to_send_to”;
fd.RecipientName = “<your_recipients_name”;
int i = fd.Send();
MessageBox.Show(i.ToString());
fs.Disconnect();https://stackoverflow.com/questions/3679402
复制相似问题