检索使用RFCOMAPILib(RIGHTFAX)发送的传真的图像

时间:2010-10-18 15:26:34

标签: fax rightfax

有人能告诉我是否有办法检索使用RFCOMAPILib发送的传真副本?

我可以轻松发送传真,但是出现了一项新要求,即发送的传真可供用户查看。目前,我记录传真对象的句柄,并使用它来检索状态更新。

由于

1 个答案:

答案 0 :(得分:1)

以下是如何操作的示例:

// add using statements
using RFCOMAPILib;
// Do some stuff here if needed...

// initialize your fax server api faxAPI = new RFCOMAPILib.FaxServer();
// you can set this in the .config files if need be. faxAPI.ServerName = "[YourFaxServerHere]"; faxAPI.Protocol = RFCOMAPILib.CommunicationProtocolType.cpSecTCPIP;
// since i am working with multiple users, i iterated through the users and retrieved their // respective passwords (encrypted of course) but you can insert the string value here or // set it in the .config file. faxAPI.AuthorizationUserID = "[UserNameYouAreRetrievingImageFor]"; faxAPI.AuthorizationUserPassword = "[UserPassword]"; faxAPI.UseNTAuthentication = RFCOMAPILib.BoolType.False;
// Do some stuff here if needed...

// initialize fax object RFCOMAPILib.Fax rfFax = (RFCOMAPILib.Fax)faxAPI.get_Fax([FaxHandleAsIntValueHere])

希望这适合你!

相关问题