Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#3.0
hi

I Want to create application using C# that will send fax .....any idea ????i had tried using interfax but its not working.....
Posted 12-Sep-12 20:50pm
Resam11354
Edited 13-Sep-12 0:37am
v4
Comments
Steve Maier at 13-Sep-12 14:08pm
   
It looks like interface should be able to do it, where is your code that you used to test it? Post that and people will help.

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Add a reference FAXCOMEXLib.dll to your Webservice:


 FAXCOMEXLib.FaxServer faxServer = new FAXCOMLib.FaxServerClass(); 
if (FaxNumber != "") 
{ 
    try 
    { 
        faxServer.Connect(MachineName); 
        faxServer.Retries = Retries; 
        faxServer.RetryDelay = RetryDelay; 
        FAXCOMEXLib.FaxDoc faxDoc = (FAXCOMEXLib.FaxDoc)faxServer.CreateDocument(FileName); 
        faxDoc.RecipientName = RecipientName; 
        faxDoc.FaxNumber = FaxNumber; 
        faxDoc.DisplayName = DocumentName; 
        int Response = faxDoc.Send(); 
        success = true; 
    } 
    catch{} 
    finally 
    { 
        faxServer.Disconnect(); 
    } // disconnect 
} // send fax 
  Permalink  
v3
Comments
Rollu at 14-Sep-12 1:00am
   
the above code would recquire modem ????
Rollu at 14-Sep-12 1:32am
   
I had tried above code....add ref to FAXCOMEXLib.dll and wrute above code but it thrwos an unknown error
Kuthuparakkal at 14-Sep-12 2:00am
   
You should have modem installed to get this working, we cannot diffuse the "FAX" thru air rit ? it's mere commonsense.
Rollu Polu at 14-Sep-12 2:18am
   
Thanks for answer.....but we can done it without modem using web service......and i have asked for using web service

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

  Print Answers RSS
0 Maciej Los 199
1 Sergey Alexandrovich Kryukov 154
2 Sascha Lefévre 120
3 Abhinav S 104
4 Rana Waqas 78
0 Sergey Alexandrovich Kryukov 6,628
1 OriginalGriff 6,298
2 Peter Leow 2,534
3 Maciej Los 2,437
4 Abhinav S 2,378


Advertise | Privacy | Mobile
Web01 | 2.8.150414.1 | Last Updated 13 Sep 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100