Specifications

No
EPSON
TITLE
EPSON Advanced Printer Driver for TM series
StatusAPI
Reference Manual
Revision
L
NEXT
64
SHEET
63
3.44.BiSCNRetransmissionImage
[Function]
Retransmits the image scanning results.
[Format]
int BiSCNRetransmissionImage( int nHandle, WORD wId, LPDWORD pBuffSize,
LPBYTE pBuff, LPBYTE pImageXsize,
LPBYTE pStatus, LPBYTE pDetail, DWORD dwTimeout)
[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.
LPDWORD pBuffSize
Specifies the size of memory where the image data are set. After this function is executed, the size of the actually scanned
data is set.
LPBYTE pBuff
Specifies the memory address where the image data are set.
LPBYTE pImageXsize
Specifies the memory address where the number of image data (bytes) in the X direction is set.
LPBYTE pStatus
Specifies the memory address where the read status is stored. Concerning the status that is returned, see the
BiSCNSetReadBackFunction image scanning status.
LPBYTE pDetail
Specifies the memory address where detailed information is set when scanning ends with an error. Concerning the status
that is returned, see the BiSCNSetReadBackFunction image scanning status.
DWORD dwTimeout
Specifies the data reading time out time in msec units. This time out is a value that is measured from the point when there
is no response from the printer after a rereading request.
[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_TIMEOUT A time out error occurred.
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.
[Caution]
If this function is executed for the TM-H6000II, which is not equipped with a scanner, it ends with an ERR_TIMEOUT.
If this function is called by the BiSCNReadImage function when no image scanning is being executed or a specified
data identifier is not present, the scanning data are not set (the read status shows that it ended in an error).
If the scanning data overflows, the 6
th
bit of the read status goes ON (read data overflow). In that case, the “required
number of bytes” is set in pBuffSize.
Sufficient buffer capacity should be specified in pBuffSize and pBuff. The maximum image data size is 4 megabytes.
[Supported Printers]
TM-H6000II with scanner