How to Send a Fax

Sending a fax with Fax OCX can be accomplished by calling a short series of methods.  The sequence below demonstrates how to perform basic faxing functionality using the Fax.OCX:

 

Using the Fax.OCX, the fax environment is automatically initialized.  Using the Faxcpp32.DLL you must call the SetupFaxDriver function.

 

OpenPort

Connects the port to the fax hardware

CreateFaxObject

Creates a FAX object

SetFaxPage

Sets the new page of the given fax

SendNow

-OR-

SendFaxObj

Sends a fax immediately

 

Adds the fax to the send queue, the fax will be sent as soon as all previous faxes are sent and a fax channel becomes available.

ClosePort

Closes the port

ClearFaxObj

Deletes the specified fax object