I am using Microsoft Shared Fax to send a fax from Axapta without
opening the faxwizard. This is my code:

static void SendFax(Args _args)
{
    COM FaxServer;
    COM FaxDoc;
   

    FaxServer = new COM('FaxServer.FaxServer');

    FaxServer.Connect('Server');
    FaxDoc = COM::createFromVariant(FaxServer.CreateDocument
(C:\\Temp\\Test.txt'));

    FaxDoc.FaxNumber('055784585');
    FaxDoc.RecipientName('Ann');
    FaxDoc.Send();    //LINE 15
    FaxServer.Disconnect();
}

But I get an error at the line 15.
Error translated from norwegian:
Method 'Send' in COM-object in class 'IFaxDoc' returns the errorcode
0x80070002(<unknown>), which means; <unknown>.

Is there anyone that can give me a clue what's wrong here?




Yahoo! Groups Links

Reply via email to