Sending a fax through .NET / C #

How do I send a fax in .NET? We have a fax server through which we need to send fax documents to clients. Since we have a fax server, I don’t think I need to configure a fax modem on my machine, right? Did he just go through the fax server?

Are there any good free (or cheap) fax APIs? In my research, I came across FAXCOMEXLib fax, FaxMan and Windows fax service, but the documentation seems limited so I hope someone here can point me in the right direction.

Thanks!

+4
source share
3 answers

As far as I know, .NET has nothing built in to directly support sending faxes through a fax server. If not, you probably want to use the COM interface for the fax server. Basically, you create a FaxServer object and call its Connect method to connect to the fax server. Then you call the FaxServer CreateDoc method to create the fax document object. The FaxDoc object has a (huge) amount of properties to indicate more about the recipient and the document than any sane person could imagine, but the two main ones are file_name and fax number. After you have installed these (along with any others that you want), you call your sending method to send this document to this fax number.

The last time I played with this was a few years ago, so I probably missed a few things. Basically, I remember that it was strange that FaxServer created an empty FaxDoc, which you filled out, and then asked to send yourself, and that there was a lot of documentation that described "material" that initially seemed necessary, but turned out to be completely irrelevant, at least least for what I did (and in retrospect probably would usually be).

+2
source

Depending on your budget, you can use fax for email instead. Many services have a .NET-compatible API and reasonable rates.

This will probably be much simpler (and therefore cheaper) than actually interacting with the fax server.

+2
source

If you do not want to use any third-party API, for example, interfax, you need to use Faxman or FAXCOMEXLib. But from this year www.data-tech.com is not responding, which provide fax or fax jr SDK for sending fax. The faxman jr product does not work on Windows 10. Although they announce that it will work on Windows 10 PC, it does not work.

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

I'm not sure, but maybe the data technology will just stop serving them, because the last time I send them an email several times, but they do not respond. This way you can use faxcomlib and it is very simple to send a fax.

Please check the sample link using FAXCOMEXLib.

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

+1
source

All Articles