TwainGetLastConditionCode Method

See Also     Examples     Applies To

Returns the last condition code from the last message sent to TWAIN.

Syntax

object.TwainGetLastConditionCode ()

The TwainGetLastConditionCode syntax has these parts:

Part Description
object Required. An object expression that evaluates to an object in the Applies To list.

Returns

Long. TwainConditionCode Value. Can be:
TWCC_SUCCESS = 0 -> It worked!
TWCC_BUMMER = 1 -> General failure. Unload Source immediately
TWCC_LOWMEMORY = 2 -> Not enough memory to perform operation
TWCC_NODS = 3 -> No Data Source
TWCC_MAXCONNECTIONS = 4 -> Data Source is connected to max possible applications
TWCC_OPERATIONERROR = 5 -> Data Source or Data Source manager reported error, app shouldn't report an error
TWCC_BADCAP = 6 -> Unknown capability
TWCC_BADPROTOCOL = 9 -> Unrecognized MSG DG DAT combination
TWCC_BADVALUE = 10 -> Data parameter out of range
TWCC_SEQERROR = 11 -> DG DAT MSG out of expected sequence
TWCC_BADDEST = 12 -> Unknown destination Application/Source in DSM_Entry
TWCC_CAPUNSUPPORTED = 13 -> Capability not supported by source
TWCC_CAPBADOPERATION = 14 -> Operation not supported by capability
TWCC_CAPSEQERROR = 15 -> Capability has dependancy on other capability
TWCC_DENIED = 16 -> File System operation is denied (file is protected)
TWCC_FILEEXISTS = 17 -> Operation failed because file already exists.
TWCC_FILENOTFOUND = 18 -> File not found
TWCC_NOTEMPTY = 19 -> Operation failed because directory is not empty
TWCC_PAPERJAM = 20 -> The feeder is jammed
TWCC_PAPERDOUBLEFEED = 21 -> The feeder detected multiple pages
TWCC_FILEWRITEERROR = 22 -> Error writing the file (meant for things like disk full conditions)
TWCC_CHECKDEVICEONLINE = 23 -> The device went offline prior to or during this operation

Category

TWAIN Functions





© Copyright 2008 GdPicture All rights reserved.
Documentation MAP.