我可以使用C#中的FAXCOMEXLIB接收和发送传真。 例如:
nws.faxSrv = new FaxServerClass();
nws.faxSrv.Connect(serverName);nws.faxSrv.ListenToServerEvents(FAXCOMEXLib.FAX_SERVER_EVENTS_TYPE_ENUM.fsetOUT_QUEUE | FAXCOMEXLib.FAX_SERVER_EVENTS_TYPE_ENUM.fsetIN_QUEUE);
nws.faxSrv.OnOutgoingJobChanged += faxSrv_OnOutgoingJobChanged;
nws.faxSrv.OnOutgoingJobAdded += faxSrv_OnOutgoingJobAdded;
nws.faxSrv.OnOutgoingJobRemoved += faxSrv_OnOutgoingJobRemoved;
nws.faxSrv.OnIncomingJobAdded += faxSrv_OnIncomingJobAdded;
nws.faxSrv.OnIncomingJobChanged += faxSrv_OnIncomingJobChanged;
nws.faxSrv.OnIncomingJobRemoved += faxSrv_OnIncomingJobRemoved;
我如何使用"立即接收传真"? (Windows传真有"现在接收传真"按钮)。
答案 0 :(得分:-1)
使用它:
public void ReceiveFaxNow()
{
try
{
var device = nws.faxSrv.GetDevices().GetEnumerator();
device.MoveNext();
FaxDevice dev = (FaxDevice)device.Current;
if (dev != null)
{
dev.AnswerCall();
}
}
catch (Exception e)
{
}
}