Sales
Click for numbers
Welcome User Tools Developer Tools Prices Help Sign up Login
You are here: Home > Developer Tools > Fax Web Service > Samples > ASP.NET (ASPX) - Retrieve the status of a fax

ASP.NET (ASPX) - Retrieve the status of a fax

This script requires a proxy object which can be downloaded  here. To create a fresh proxy class, see instructions here.

<%@ Page Language="vb" %>
<%

Dim oSF As New interfax.InterFax() 'Reference to Interfax object
Dim List(9) As interfax.FaxItemEx 'Data structure (array) to hold results - max 10 items
Dim intTotalCount As Integer 'Total number of messages available for the user
Dim intListSize As Integer 'Actual size of list returned (Number of items in List()
Dim strOut as string 'Hold the results
Dim i As Integer
Dim intRet As Integer

'
' Invoke Interfax FaxStatus method
'
List = oSF.FaxStatusEx("<Username>", "<password>", 99999999, 10, intTotalCount, intListSize, intRet)
If intRet <> 0 Then

'
' An error occured - see ducumentation
'
Response.Write("Error !! " & intRet)
Else

'
' A normal response returned from Interfax server
' Start display
'
Response.Write("Total received: " & intListSize & " of " & intTotalCount & "<BR>")
strOut = strOut & "TransactionID" & " : " & "Status" & " : " & "RemoteCSID" & vbCrLf

For i = 0 To intListSize - 1
Response.Write("TransactionID: " & List(i).TransactionID & " Status: " & List(i).Status & " Completed at: " & List(i).CompletionTime & "<BR>")
Next

'
' Clean up
'
oSF = Nothing
End If

%>




About | Contact | Privacy | Terms | Partners | Login | System Status

© Interfax Inc