Click here to Skip to main content
15,878,945 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi
I Want to create application using C# that will send fax .....any idea ????i had tried using interfax but its not working.....
Posted
Updated 12-Sep-12 23:37pm
v4
Comments
Steve Maier 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

Add a reference FAXCOMEXLib.dll to your Webservice:


C#
 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 
 
Share this answer
 
v3
Comments
Resam11 14-Sep-12 1:00am    
the above code would recquire modem ????
Resam11 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 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.
Resam11 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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900