ImageEn, unit ietwain

TIETwainParams.LastError

TIETwainParams.LastError


Declaration

LastError: integer;


Description

LastError returns the last error which occurred on scanning (See also: LastErrorStr).

Allowed values (defined in ietwain unit) are:

  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; // The device went offline prior to or during this operation