Function Prototypes

Description

The following are all the function prototypes used in Dynamic Web TWAIN.

OnSuccess()

Parameters Type Description
None N/A N/A

OnFailure(errorCode, errorString)

Optional callback function used in the following methods

Parameters Type Description
errorCode <int> the error code
errorString <string> the error string

OnSuccess() and OnFailure() are Function prototypes for the optional callback function used in the following methods

AcquireImage
FTPDownload
FTPDownloadDirectly
FTPDownloadEx
FTPUpload
FTPUploadAllAsMultiPageTIFF
FTPUploadAllAsPDF
FTPUploadAsMultiPagePDF
FTPUploadAsMultiPageTIFF
FTPUploadDirectly
FTPUploadEx
HTTPDownload
HTTPDownloadDirectly
HTTPDownloadEx
LoadDibFromClipboard
LoadImage
LoadImageEx
SaveAllAsMultiPageTIFF
SaveAllAsPDF
SaveAsBMP
SaveAsJPEG
SaveAsPNG
SaveAsPDF
SaveAsTIFF
SaveSelectedImagesAsMultiPagePDF
SaveSelectedImagesAsMultiPageTIFF

OnHttpUploadSuccess(sHttpResponse)

Parameters Type Description
sHttpResponse <string> the information returned from the server after the upload

OnHttpUploadFailure(errorCode, errorString, sHttpResponse)

Parameters Type Description
errorCode <int> the error code
errorString <string> the error string
sHttpResponse <string> the detailed error information returned from the server

OnHttpUploadSuccess() and OnHttpUploadFailure() are Function prototypes for the optional callback function used in the following methods
HTTPUploadAllThroughPostAsMultiPageTIFF
HTTPUploadAllThroughPostAsPDF
HTTPUploadThroughPost
HTTPUploadThroughPostAsMultiPagePDF
HTTPUploadThroughPostAsMultiPageTIFF
HTTPUploadThroughPostDirectly
HTTPUploadThroughPostEx

See Also

ErrorCode
ErrorString