Specifications

No
EPSON
TITLE
EPSON Advanced Printer Driver for TM series
StatusAPI
Reference Manual
Revision
L
NEXT
62
SHEET
61
3.43.BiSCNReadImage
[Function]
Executes image scanning. If 0 is specified for the paper insertion wait time, the printer wait time is canceled.
[Format]
int BiSCNReadImage( int nHandle, WORD wId, BYTE bSelectSheet,
BYTE bWaitInsertionTime, BYTE bAddInforDataSize,
LPBYTE pAddInforData, BYTE bMemory)
[Argument]
int nHandle
Specifies the handle value of the printer executing the function. The return value in BiOpenMonPrinter() is specified.
WORD wId
Specifies the data identifier related to the scanned image. Data identifier can be specified in the range of 1- 65535.
BYTE bSelectSheet
Specifies the paper which is the scanning object. The types that can be specified are as shown below.
EPS_BI_SCN_JOURNAL(1) : Journal
EPS_BI_SCN_RECEIPT(2) : Receipt
EPS_BI_SCN_CHECKPAPER(32) : Check paper
However, in the current version, this setting is fixed on EPS_BI_SCN_CHECKPAPER, and any other value that is
specified is regarded as invalid.
BYTE bWaitInsertionTime
Specifies the paper insertion wait time.
0 ~ 15 [x 60 sec.] (The default is 0.)
BYTE bAddInforDataSize
Specifies the memory address where the size of character data is set if character information is added to an image.
LPBYTE pAddInforData
Specifies the memory address where character data are set if character information is added to an image.
BYTE bMemory
Specifies whether to save or not save the result of reading images in the NV memory.
EPS_BI_SCN_NVMEMORY_NOTSAVE(48) not saved (reading result is saved in the work area)
EPS_BI_SCN_NVMEMORY_SAVE(49) saved
[Return Values]
If execution is successful, 0 is returned. If an error occurs, the following error codes (negative values) are returned.
ERR_HANDLE The handle value specified for the printer is incorrect.
ERR_ACCESS Reading/writing with the printer is not possible (printing in progress).
ERR_PARAM Parameter error
ERR_NOT_SUPPORT Not supported
ERR_OFFLINE It was opened in the offline state, so it cannot be used until the online state is recovered.
ERR_WITHOUT_CB Cannot execute because either BiSCNSetReadBackFunction or BiSCNSetReadBackWnd has
not been called.