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.
|
Connects the port to the fax hardware |
|
|
Creates a FAX object |
|
|
Sets the new page of the given fax |
|
|
-OR- |
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. |
|
Closes the port |
|
|
Deletes the specified fax object |