Partager via


FaxServer.Connect method

The Connect method connects a fax client application to the specified fax server.

Syntax

FaxServer.Connect( _
  ByVal bstrServerName As String _
) As Long

Parameters

bstrServerName

Type: String

A null-terminated string that specifies the name of the target fax server, such as "computername". If this parameter is Null or an empty string, the method connects the application to the fax server on the local computer.

Remarks

Before accessing most of the objects of the fax extended Component Object Model (COM), the application must call this method to initiate a connection with an active fax server. A fax server connection is not required for you to access a FaxDocument object. The method fails if the client is not connected to an active fax server.

To connect to the local server, set the bstrServerName parameter to Null or an empty string. For usage examples, see Connecting to the Fax Server.

Requirements

Minimum supported client
Windows XP [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
FaxComex.h
DLL
Fxscomex.dll

See also

Visual Basic Example

FaxServer

IFaxServer