CTI32 Class Library

cti.SendFax Method 

Sends a fax. Prior to making this call, you should have routed the fax channel to a telephone resource. You should have dialed a phone number before calling this function.

[Visual Basic]
Public Shared Function SendFax( _
   ByVal faxchan As Integer, _
   ByVal filepath As String, _
   ByVal cover As String, _
   ByVal send_csid As String, _
   ByVal time_to_answer As Integer, _
   ByRef received_csid As String, _
   ByRef items_sent As Integer, _
   ByVal chdev_to_watch As Integer, _
   ByVal header_text As String _
) As Integer
[C#]
public static int SendFax(
   int faxchan,
   string filepath,
   string cover,
   string send_csid,
   int time_to_answer,
   ref string received_csid,
   ref int items_sent,
   int chdev_to_watch,
   string header_text
);

Parameters

faxchan
The fax channel (1 – X) that you wish to send the fax from
filepath
The full path name to the TIF file(s) you wish to send. The file naming format for the faxes is xxxxp001.TIF, xxxxp002.TIF, etc. (A file for each page) You need only pass the full path to the first page. The gammalink driver automatically picks up and sends the rest of the pages.
cover
The full path to the TIF file for the cover page.
send_csid
The CSID is the number that appears on the other fax machine when it connects. This parameter sets the number you want displayed on their machine. This should be your fax number.
time_to_answer
Time in seconds to allow for a connection. Once expired, the function will return with an error.
received_csid
Output. This stores the CSID received from their fax machine.
items_sent
Output. How many pages were actually sent to their fax machine.
chdev_to_watch
channel side device number to watch for pre-mature hang up.
header_text
The text to put on the top of the fax.

Return Value

0 if fax successful, Gammalink Status code or -1 for error.

See Also

cti Class | CTI32NetLib Namespace