Establishes a connection to a fax server.
Remark: This function can only be used with Windows 2000, XP or later, or on a server with Windows 2000, XP or later. In Windows Vista, the management of faxes is available in Windows Vista Professional Edition and Windows Vista Ultimate Edition.
ConnectID is int
ConnectID = FaxConnect()
IF ConnectID = 0 THEN
Error("The connection to the fax server failed." + ...
"Check whether it has been started", ...
ErrorInfo(errSystemMessage))
END
...
FaxDisconnect(ConnectID)
Syntax
<Result> = FaxConnect([<Fax server name>])
<Result>: Integer
- Connection identifier,
- 0 if an error occurs. The corresponding error message is returned by ErrorInfo.
<Fax server name>: Optional character string
Name of the fax server. If this parameter is not specified, the fax server corresponds to the current computer.
Caution: the fax server must be started and configured in outgoing mode. For more details, see Sending faxes.
Remarks
Using a fax server installed on a computer other than the current computer
You have the ability to use a fax server installed on a computer other than the current computer. In this case, the computer where the fax server is installed must be running Windows Server 2003. The fax server must be shared. Then, the name of fax server must be specified in FaxConnect.
The computer from which the faxes will be sent must be equipped with a local fax server.
For example, if the fax server is installed on the "FaxServer1" computer, use the following code:
ConnectID is int
ConnectID = FaxConnect("FaxServer1")