Hi,

I have the RICOH Aficio 2018D device which can be used to send fax. It is installed as a network fax-printer in my LAN. I want to write an application that will send faxes using this device. Can I use the FAXCOMLib for this purpose or it is only for fax-modems?

I tried to use it. The code was:

FaxServer faxServer = new FaxServerClass();
faxServer.Connect("MICHAELB2"); // It's my PC's hostname
FaxDoc doc = (FaxDoc)faxServer.CreateDocument(@"C:\Dmitryp\FAX.NET\test.doc");
doc.FaxNumber = "12345678";
doc.RecipientName = "Me";
doc.Send();
faxServer.Disconnect();

This throws the COM exception on line "doc.Send();". The exception is:
"The object identifier does not represent a valid object. (Exception from HRESULT: 0x800710D8)"

Well, I tried to pass the fax-printer hostname to Connect() method, but then I god another exception, again on the same line "doc.Send();":
"The handle is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE))"

Any ideas?