TwainGetLastConditionCode Method

See Also     Examples     Applies To

Return 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 '/* Failure due to unknown causes */
TWCC_LOWMEMORY = 2 '/* Not enough memory to perform operation */
TWCC_NODS = 3 '/* No Data Source */
TWCC_MAXCONNECTIONS = 4 '/* DS is connected to max possible applications */
TWCC_OPERATIONERROR = 5 '/* DS or DSM reported error, application shouldn't */
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

Remarks

Before using this method check that the TWAIN state is >= 3 (TWAIN_SM_OPEN)
To get the TWAIN state, use the TwainGetState() method.
If a source is NOT open, return the condition code of the source manager.

Category

TWAIN Capability





© Copyright 2007 GdPicture All rights reserved.
Documentation MAP.