none
FAXCOM.dll for sending fax RRS feed

  • Question

  • hai all,

     

       I am using faxcom.dll for sending fax using asp.net web application, when i am sending the fax the document is not faxed instead it is in outbox. Can any one say me why the fax is not beeing sent and why it is laying in outbox.

    Wednesday, May 23, 2007 6:07 AM

Answers

  • Below is a sample and it works fine.
    Send a fax in C# using FaxCom.dll
    FAXCOMLib.FaxServerClass fsc = new FAXCOMLib.FaxServerClass
    ();
    fsc.Connect("MyMachineName");

    object obj = fsc.CreateDocument(@"Irfan.txt");
    FAXCOMLib.FaxDoc fd = (FAXCOMLib.FaxDoc)obj;
    fd.FaxNumber = "027905007";
    fd.RecipientName = "Irfan";
    int i = fd.Send();

     

    When sending, the fax may be not sent immediately. It stays in the faxqueue for a while and windows fax service will retry.

     

    If not, please see this KB article How To Send a Fax from an ASP Page on Windows 2000, following the example inside step by step, maybe you ignored certain steps.

     

    Hope that helps!

    Thursday, May 24, 2007 9:56 AM

All replies

  • Below is a sample and it works fine.
    Send a fax in C# using FaxCom.dll
    FAXCOMLib.FaxServerClass fsc = new FAXCOMLib.FaxServerClass
    ();
    fsc.Connect("MyMachineName");

    object obj = fsc.CreateDocument(@"Irfan.txt");
    FAXCOMLib.FaxDoc fd = (FAXCOMLib.FaxDoc)obj;
    fd.FaxNumber = "027905007";
    fd.RecipientName = "Irfan";
    int i = fd.Send();

     

    When sending, the fax may be not sent immediately. It stays in the faxqueue for a while and windows fax service will retry.

     

    If not, please see this KB article How To Send a Fax from an ASP Page on Windows 2000, following the example inside step by step, maybe you ignored certain steps.

     

    Hope that helps!

    Thursday, May 24, 2007 9:56 AM
  • I am trying to convert the above example to C++ and running into a problem with the line.

    FAXCOMLib.FaxDoc fd = (FAXCOMLib.FaxDoc)obj;

    Monday, April 20, 2009 7:08 PM
  • Pete, you'll probably get better and faster results if you try two things:

    1. Give more information on what kinds of problems you're having.  Include error messages, etc.
    2. Don't post requests for C# translation to C++ on a C# forum.  Post them to the C++ forum, and link back to the post here in the C# forum.
    David Morton - http://blog.davemorton.net/
    Monday, April 20, 2009 7:16 PM
    Moderator