FaxMan V 4 ActiveX Control
FaxLogAdd Event
Specifies the log into which the fax was added.
Specifies the FaxId of the fax.
Specifies the index of the fax in the current log otherwise -1 if the fax wasnt added to the current log.
Description

Occurs when a fax job is moved into a new log.

Syntax
Visual Basic
Public Event FaxLogAdd( _
   ByVal LogType As Integer, _
   ByVal FaxID As Long, _
   ByVal LogIndex As Long _
)
Parameters
LogType
Specifies the log into which the fax was added.
FaxID
Specifies the FaxId of the fax.
LogIndex
Specifies the index of the fax in the current log otherwise -1 if the fax wasnt added to the current log.
Remarks

The FaxLogAdd event is fired each time a fax is added to any of FaxMan’s 5 logs. If the current log is the log the fax was added to (in other words, LogType = FaxMan.Log), then (and only then) the LogIndex parameter may be used to reference the information in the new log item.

 

If you desire to delete the fmf, or log entry, once an item has completed or failed, the FaxLogAdd event is not the place to do so. FaxLogAdd does not mean that Faxman is totally finished with the fax. It just means the fax has changed logs. This occurs before the faxmodem object is destroyed internally.

 

One option might to keep track of the faxID's and then upon receipt of the Status Event being PortShut you could delete the fmf. You would just need to store the ID in the FaxLogAdd and then in Status, assuming the StatusID = the FaxID, of this job you could delete the file or log entry.

See Also

FaxMan Object  | FaxMan Members

Send comments on this topic.