RightFax 和 .NET?

发布于 2024-09-18 20:24:34 字数 113 浏览 1 评论 0原文

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

How easy is it to integrate RightFax with .NET/C#? We are considering FaxMan, Windows Fax Server also, but we came across RightFax. We basically need to be able to send faxes through a .NET App, monitor status etc.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

陪我终i 2024-09-25 20:24:34

以下是 RightFax 发送传真的一些示例代码,来自 这个其他答案,使用 Right Fax COM API 库 (rfcomapi.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 = "John Doe";
fax.ToFaxNumber = "4255551111";
fax.ToVoiceNumber = "4255550000";
fax.ToCompany = "ACME";
fax.FromName = "My Company";
fax.FromVoiceNumber = "4255552222";

fax.Send();

Here's some sample code for RightFax sending faxes, from this other answer, using the Right Fax COM API Library (rfcomapi.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 = "John Doe";
fax.ToFaxNumber = "4255551111";
fax.ToVoiceNumber = "4255550000";
fax.ToCompany = "ACME";
fax.FromName = "My Company";
fax.FromVoiceNumber = "4255552222";

fax.Send();
胡渣熟男 2024-09-25 20:24:34

fuel9 有一个名为 Boomerang 的通知框架,支持 Windows 传真服务器。该框架有一个数据库接口,因此它支持.Net 和任何其他可能连接到数据库服务器的东西。我看到他们也在开发 Rightfax 扩展,但我们的基础设施中只有 MS 传真。 Boomerang 对我们来说非常有用,只需很少的 sql 语句就可以创建一个自动传真(或电子邮件、打印、ftp 等)解决方案。

/B

there is a notification framework from fuel9 called Boomerang that supports windows fax server. The framework has a database interface so it supports .Net and anything else that may connect to a database server. I saw that they are working on a Rightfax extension as well but we have only MS fax in our infrastructure. Boomerang has been working great for us and with few sql statements will can create an automated fax (or email, printing, ftp etc) solution.

/B

<逆流佳人身旁 2024-09-25 20:24:34

还可以考虑使用 Windows 中的传真服务。
使用 C# 使用 Windows 传真服务发送传真

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();

Consider also using the Fax Service in 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();
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文