通过.NET/C#发送传真

发布于 2024-09-18 03:21:18 字数 212 浏览 3 评论 0原文

如何在 .NET 中发送传真?我们有一个传真服务器,我们需要通过它将文件传真给客户。由于我们有传真服务器,我不认为我必须在我的机器上配置传真调制解调器,对吧?它只会通过传真服务器吗?

有没有好的免费(或便宜)传真 API?在我的研究中,我遇到过 FAXCOMEXLib、FaxMan 和 Windows 传真服务,但文档似乎有限,所以我希望这里有人能给我指出正确的方向。

谢谢!

How do I go about sending fax in .NET? We have a fax server through which we need to fax documents to clients. Since we have a fax server, I don't imagine that I have to configure a fax modem on my machine, right? It would just go through the fax server?

Are there any good free (or cheap) Fax APIs out there? IN my research I've come across FAXCOMEXLib, FaxMan, and Windows Fax Service, but the documentation seems limited, so I am hoping someone here can point me in the right direction.

Thanks!

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

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

发布评论

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

评论(3

安穩 2024-09-25 03:21:19

据我所知,.NET 没有内置任何东西来直接支持通过传真服务器发送传真。如果没有,您可能希望使用传真服务器的 COM 接口。基本上,您创建一个 FaxServer 对象并调用其 Connect 方法来连接到传真服务器。然后调用 FaxServer 的 CreateDoc 方法来创建传真文档对象。 FaxDoc 对象具有(大量)属性,可以比任何理智的人想象的更多地指定有关收件人和文档的属性,但两个主要属性是 FileName 和 FaxNumber。一旦您设置了这些(以及您想要的任何其他设置),您就可以调用其 Send 方法将该文档发送到该传真号码。

我上次玩这个是几年前的事了,所以我可能会跳过一些事情。大多数情况下,我记得传真服务器创建了一个您填写的空白传真文档,然后要求自己发送,这似乎很奇怪,并且有很多文档涵盖了最初看起来像是“东西”的内容是必要的,但结果证明是完全无关的,至少对于我正在做的事情来说是这样(回想起来,通常可能是这样)。

As far as I know, .NET doesn't have anything built in to directly support sending faxes via a fax server. Absent that, you'd probably want to use the COM interface to the fax server. Basically, you create a FaxServer object and invoke its Connect method to connect to the fax server. You then invoke the FaxServer's CreateDoc method to create a fax document object. The FaxDoc object has a (huge) number of properties to specify more about the recipient and document than any sane person would imagine, but the two main ones are the FileName and FaxNumber. Once you've set those (along with any others you want) you invoke its Send method to send that document to that fax number.

I last played with this a few years ago, so I'm probably skipping a few things. Mostly I remember that it seemed strange that the FaxServer created a blank FaxDoc that you filled in and then asked to send itself, and that there was a lot of documentation covering "stuff" that initially seemed like it would be necessary, but turned out to be completely irrelevant, at least for what I was doing (and in retrospect, probably usually would be).

转身泪倾城 2024-09-25 03:21:19

根据您的预算,您可以考虑使用传真到电子邮件服务。许多服务都有 .NET 兼容的 API 和合理的费率。

这可能比实际与传真服务器交互要容易得多(因此也便宜)。

Depending on your budget, you may consider a fax to e-mail service instead. Many services have a .NET-compatible API, and reasonable rates.

This is likely to be considerably easier (and therefore, cheaper) than actually interacting with a fax server.

裸钻 2024-09-25 03:21:19

如果您不想使用任何第 3 方 API(例如 interfax),则必须使用 Faxman 或 FAXCOMEXLib。但从今年开始 www.data-tech.com 不再响应提供faxman或faxman jr SDK发送传真。 faxman jr 产品无法在 Windows 10 上运行。虽然他们宣布它将在 Windows 10 PC 上运行,但它无法运行。

http://www.data- tech.com/blog/post/FaxMan-SDK-Version-5-Upgrade-Available.aspx

我不确定,但可能是数据技术停止了他们的服务,因为上次我多次向他们发送电子邮件,但他们没有回应任何事情。所以你可以使用faxcomlib,这是一个非常简单的发送传真。

请检查使用 FAXCOMEXLib 的示例链接。

https://code.msdn.microsoft.com /C-Send-Fax-using-fax-Modem-357aca81/

If you do not want to use any 3rd party API like interfax, then you have to use Faxman or FAXCOMEXLib. But from this year www.data-tech.com is not responding which provide faxman or faxman jr SDK for sending fax. faxman jr product is not working on windows 10. although they are announce that it will work on windows 10 PC, but it is not working.

http://www.data-tech.com/blog/post/FaxMan-SDK-Version-5-Upgrade-Available.aspx

I am not sure but may be data-tech just stop their service, because last time I email them multiple time but they are not responding anything. So you can use faxcomlib and this is a very simple to send fax.

Please check link for a sample using FAXCOMEXLib.

https://code.msdn.microsoft.com/C-Send-Fax-using-fax-Modem-357aca81/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文