2010-10-18 68 views
0

任何人都可以告诉我是否有方法检索使用RFCOMAPILib发送的传真副本吗?检索使用RFCOMAPILib发送的传真图像(RIGHTFAX)

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

感谢

回答

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])

希望这对你的作品!