Industries
Quick Contact Us
Our Technology Partners

Content on this page requires a newer version of Adobe Flash Player.

You are Here: Home knowledge Bank Web based Online Fax Services
Using Windows Fax Service to Send Fax using C#
In today's world, while building an application you might run into scenarios where you need to send a Fax from the application. And to a certain extent this is very much required, because you might not want to take a print-out and go to a fax machine to send a fax. Why can't it be sent from my application?
It is very simple to send a fax using Windows 2000 Fax Service in C#. The application makes use of FaxCom.dll that ships with Windows 2000. This dll is usually located in C:\WINNT\system32 folder. Within the VS.NET IDE, adding a reference to this DLL generates the equivalent Interop.
You can then use the following code to send a fax.
FaxServerClass fs = new FaxServerClass();
fs.Connect("mymachine"); //specifies the machinename
object obj = fs.CreateDocument("myfilename");
FaxDoc fd = (FaxDoc)obj;
fd.FaxNumber = "myfax#";
fd.RecipientName = "Tester";
int i = fd.Send();
MessageBox.Show(i.ToString());
fs.Disconnect();

Prior to using this, we must make sure to attach the Fax modem, install its drivers and see if the modem is shown within the Device Manager. This same code will also work on Windows 2003 and Windows XP Operating systems.
Now you have implemented a system which will send a fax. Well what about if you want to receive a fax. What about receiving a fax? Well writing all that would mean serious trouble keeping in mind the small time frame you have to develop your application. Every Fax Server, receives a fax as an image and stores it in a Folder (You can see the destination folder path in the properties). There is also an option to save a copy of the incoming fax to a specific folder. Just set these changes, and write a code which will display the contents of that folder and that's it. You are done with your Fax Integration for your application.
Well if you are interested in outsourcing software development or would like to find out more about our services and offerings, please get in touch with us. A senior member of our Business team will get in touch with you within 24 hours.
conatct us
 
  Healthcare - Case Studies
Health Maintenance Organization (HMO)
B2B EDI Bulk Transactions
Managing Website Portal
Reports for CMS and Sponsors
Read more...
  Technology - Case Studies
Folder based Approach
TCP/IP based Approach
Manual Charge File Approach
Read more...
  News and Events
Binary participates in World Kannada Conference 2010, US
Binary Spectrum signs a contract with a Medical company
Binary Spectrum achieves HIPAA Compliance Certification
  Frequently Asked Questions
How to choose the right EMR for your Practice?
What is the roadmap for the implementation of an EHR system at a practice?
Which is better - Web based EMR system or Client server EMR system?
Read more...
Blog Privacy Terms of Use