开发者

Sending Fax through .NET/C#

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 Serv开发者_运维百科ice, but the documentation seems limited, so I am hoping someone here can point me in the right direction.

Thanks!


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).


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.


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/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜