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
- To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.