Sendnextimage method – MagTek MTMICRImage User Manual

Page 19

Advertising
background image

Methods

15

SENDNEXTIMAGE METHOD

Returns:
SendNextImage = 0
StatusMsg "OK"

SendNextImage = -1
StatusMsg "Failed - TimeOut"

SendNextImage = -2
StatusMsg "Failed - File Exists"

SendNextImage = -3
StatusMsg "Failed - No Image Ready"

or VB Err.Number
and StatusMsg = Err. Description

Syntax

MICRImage.SendNextImage(ByVal ImgFileName As String, ByRef StatusMsg As String,
Optional MTParams As Variant) As Long

The SendNextImage method syntax has these parts:

Part

Description

ImgFileName

The File name specified (can be UNC)

StatusMsg

The Status Message variable passed in. Used
to return the Status message of the operation

MTParams

(Optional) can be used to specify snippets or
Tags. Do not use it to override the image
transfer properties MAIN or AUX or the
Transfer type. These are handled by the
OCX


Example

Status = MICRImage.SendNextImage(ImageFileName, StatusMsg)

Data Type

Long

Advertising