Click here to Skip to main content
15,881,204 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 281.7K   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: Unknown Exceptional error Pin
mast42823-Jul-07 3:30
mast42823-Jul-07 3:30 
GeneralProblem accessing FAXCOM from other service Pin
LAcike@sk28-Jun-07 5:20
LAcike@sk28-Jun-07 5:20 
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 
by using this faxcom.dll ???

--
alecc#
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 
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 

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.