Click here to Skip to main content
15,899,825 members
Articles / Programming Languages / C#
Tip/Trick

Faxing with XP and C#

Rate me:
Please Sign up or sign in to vote.
2.42/5 (30 votes)
5 Jan 2014CPOL 282.8K   10.4K   49   54
Send faxes with C# using Win 2k or XP

Sample Image - Fax-XP-ing.gif

Introduction

This code can be used to send Faxes using Windows XP and 2000. I have included a bitmap image in the demo that will be faxed to a recipient. You can make your own bitmap using System.Drawing class, save it to disk and then reference it and send it to a fax number. All you need is a Modem, windows fax service which comes with XP and a telephone line and you are on you way. I understand that there might be some issues with limited User rights but have not yet tested it, I was only using my Administator Account when testing this. Anyway, all you might need to do is add a reference to the "faxcom 1.0 Libary" and you are set. Your feed back is welcome and I will keep track on any problems. 

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Being IT Solutions
South Africa South Africa
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralRe: Problem accessing FAXCOM from other service Pin
Leon van Wyk28-Jun-07 9:19
professionalLeon van Wyk28-Jun-07 9:19 
GeneralRe: Problem accessing FAXCOM from other service Pin
LAcike@sk28-Jun-07 22:28
LAcike@sk28-Jun-07 22:28 
GeneralRe: Problem accessing FAXCOM from other service Pin
dfordurai20-Jun-08 19:20
professionaldfordurai20-Jun-08 19:20 
GeneralSending FAX using C#.net FAXCOMLib -The object identifier does not represent a valid object. (Exception from HRESULT: 0x800710D8) Pin
dfordurai20-Jun-08 19:22
professionaldfordurai20-Jun-08 19:22 
GeneralRe: Sending FAX using C#.net FAXCOMLib -The object identifier does not represent a valid object. (Exception from HRESULT: 0x800710D8) Pin
Leon van Wyk21-Jun-08 3:55
professionalLeon van Wyk21-Jun-08 3:55 
QuestionHow to receive fax messages? Pin
alek_kowalczyk17-Jul-06 21:22
alek_kowalczyk17-Jul-06 21:22 
AnswerRe: How to receive fax messages? Pin
LAcike@sk28-Jun-07 5:23
LAcike@sk28-Jun-07 5:23 
QuestionHow to fetch th information of a fax send request ? (whether successfully sent or failed) Pin
softwareashok4-Jul-06 10:41
softwareashok4-Jul-06 10:41 
Hi,
I 'm working on this FaxComLib to send randome faxes wich are more than one number (say around lakhs of fax). Out of those few fax numbers are invlid due to of some reason (let's say either destination fax not working or not responding or does not exist at all). Now filtering out those failure numbers is very important for me. Well ,I've already find a way to fetch it from the outgoing archives' each fax's status information and from that I take status of it. I do not know whether its the best solution or not. I went through google and microsoft website also but of not help much to get confirmed about my query.

But is thre any way that promptly I can get the status of a faxsending request. The send method also returns a integer value but does not understand which is number is for successful or failure. So here if you could focus something on this issue then your effort weould be highly appreciated. Well, this is my request to you - two hands are better than one hand Smile | :) .
Thank you
AShok


AShok
AnswerRe: How to fetch th information of a fax send request ? (whether successfully sent or failed) Pin
Leon van Wyk4-Jul-06 21:29
professionalLeon van Wyk4-Jul-06 21:29 
AnswerRe: How to fetch th information of a fax send request ? (whether successfully sent or failed) Pin
mast42814-Aug-07 22:27
mast42814-Aug-07 22:27 
AnswerRe: How to fetch th information of a fax send request ? (whether successfully sent or failed) PinPopular
Wade@Crans27-Sep-07 22:59
Wade@Crans27-Sep-07 22:59 
AnswerRe: How to fetch th information of a fax send request ? (whether successfully sent or failed) Pin
ginji2018-Jun-08 17:00
ginji2018-Jun-08 17:00 
GeneralThe data is invalid. Pin
Carmen Cerino3-Mar-06 9:54
Carmen Cerino3-Mar-06 9:54 
QuestionRe: The data is invalid. Pin
sdanyalk3-May-06 22:01
sdanyalk3-May-06 22:01 
AnswerRe: The data is invalid. Pin
LAcike@sk28-Jun-07 5:12
LAcike@sk28-Jun-07 5:12 
GeneralPCL, EPS and PS Files Pin
nickbungus21-Feb-06 0:31
nickbungus21-Feb-06 0:31 
GeneralRe: PCL, EPS and PS Files Pin
Leon van Wyk27-Feb-06 1:38
professionalLeon van Wyk27-Feb-06 1:38 
GeneralCannot Send Fax Pin
awsedrftgy23-Aug-05 18:00
awsedrftgy23-Aug-05 18:00 
GeneralRe: Cannot Send Fax Pin
vandan_desai31-Jul-06 2:42
vandan_desai31-Jul-06 2:42 
GeneralHide Software PopUp When Faxing Pin
parviz_rashidi20-Aug-05 22:34
parviz_rashidi20-Aug-05 22:34 
GeneralRe: Hide Software PopUp When Faxing Pin
Leon van Wyk21-Aug-05 21:18
professionalLeon van Wyk21-Aug-05 21:18 
GeneralSupressing Acrobat dialog Pin
JDEVIL15-Jun-05 20:18
JDEVIL15-Jun-05 20:18 
GeneralRe: Supressing Acrobat dialog Pin
Leon van Wyk16-Jun-05 3:01
professionalLeon van Wyk16-Jun-05 3:01 
GeneralRe: Supressing Acrobat dialog Pin
JDEVIL17-Jun-05 20:07
JDEVIL17-Jun-05 20:07 
QuestionHow does your solution work? Pin
Sebastian Gumpold15-Sep-05 1:14
Sebastian Gumpold15-Sep-05 1:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.