2010-10-18 62 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])

希望這對你的作品!