Here's a list of the property settings/methods you're likely to need (but
don't expect it to make reading the sdk docco unnecessary). There is a file
on their download site that gives the text for the resulting status.:
poFax = createobject("WinFax.SDKSend")
and poFax.SetAreaCode(Post.AreaCode) = 1
if poFax.SetTo(Post.Recipient) = 1
if poFax.SetCompany(Post.Company) = 1
and poFax.SetCoverFile(lcCoverFile) = 1
and poFax.SetCoverText(lcCoverText) = 1
if poFax.SetDate(lcDateToSend) = 1
if poFax.SetDeleteAfterSend(1) = 1
if poFax.SetNumber(lcFaxNo) = 1
if poFax.SetOffPeak(iif(Post.OffPeak, 1, 0)) = 1
if poFax.SetPreviewFax(0) = 1
if poFax.SetPriority(lnPriority) = 1
if poFax.SetResolution(iif(Post.Resolution, 1, 0)) = 1
if poFax.ShowCallProgress(0) = 1
if poFax.SetSubject(Post.Subject) = 1
and poFax.SetTime(Post.TimeToSend) = 1 && Time to send
and poFax.SetUseCover(1) = 1
if poFax.ShowSendScreen(0) = 1
if poFax.AddRecipient = 1
if poFax.LeaveRunning = 1
if poFax.SetPrintFromApp(1) = 1
if poFax.Send(1) = 1
do while poFax.IsReadyToPrint = 0
print report here
do while poFax.IsEntryIdReady(0) <> 1
,Result with poFax.GetEntryId(0)
=poFax.Done()
release poFax
* some time later, check whether it worked or not
loLog=createobject('winfax.sdklog')
lcMsgId = loLog.GetMessageListFirst(4,'')
lnStatus = loLog.GetMessageStatus(lcMsgId)
lnErrorCode = loLog.GetMessageErrorCode(lcMsgId)
if !inlist(lnStatus, 3, 4) && 3 = Complete; 4 = Failed
lcMsgId = loLog.GetMessageListNext() && Get next available
log message
lcDate = loLog.GetMessageDate(lcMsgId)
=loLog.DeleteEventAndFiles(lcMsgId) && Delete log message
release loLog
anthony shipley
<math> 2 + 2 = 5 for sufficiently large values of 2</math>