Home › Forums › TWAIN Classic › is HP Scanjet 7650 compatible with Twain 2.1
- This topic has 3 replies, 3 voices, and was last updated 12 years, 11 months ago by mimi.
- AuthorPosts
is HP Scanjet 7650 compatible with Twain 2.1 ?
and more precisely, can we have problems to use Twain v2.1 for multiple image scanning from an application?
Hi mimi,
According to the info provided by HP, TWAIN driver is included in HP Scanjet 7650.
http://h10010.www1.hp.com/wwpc/us/en/sm/WF05a/15179-15179-64195-15202-3445111-434502.htmlAlso, you can refer to the following article to check whether the driver is TWAIN compliant.
http://kb.dynamsoft.com/questions/72/How+can+I+check+if+my+device+is+TWAIN+compatible%3FMimi,
We had no issues with our TWAIN 2.1 compliant command line scan program using the HP ScanJet 7650 TWAIN driver, even this had TWAIN version 1.9.
What kind of problems are you expecting?
Best regards,
KaijMy application is Java JEE wich use this c++ code that corresponds to the loop to run multi image scan and throw the TWRC_FAILURE error:
while (GetMessage ((LPMSG) &msg, 0, 0, 0))
{
// Each window message must be forwarded to the currently open data
// source.
event.pEvent = (TW_MEMREF) &msg;
event.TWMessage = MSG_NULL;
g_rc = (*g_pDSM_Entry) (&g_AppID,
&srcID,
DG_CONTROL,
DAT_EVENT,
MSG_PROCESSEVENT,
(TW_MEMREF) &event);
// If the message does not correspond to a data source event, we must
// dispatch it to the appropriate Windows window.
if (g_rc == TWRC_NOTDSEVENT)
{
TranslateMessage ((LPMSG) &msg);
DispatchMessage ((LPMSG) &msg);
continue;
}
// If the currently open data source is requesting that it is ready to
// begin image transfers, perform those transfers.
if (event.TWMessage == MSG_XFERREADY)
{
nextImage:
// Obtain information about the next image to be transferred.
TW_IMAGEINFO ii;
g_rc = (*g_pDSM_Entry) (&g_AppID,
&srcID,
DG_IMAGE,
DAT_IMAGEINFO,
MSG_GET,
(TW_MEMREF) &ii);
// If unable to obtain image information ...
if (g_rc == TWRC_FAILURE)
{
// Cancel all remaining image transfers.
(*g_pDSM_Entry) (&g_AppID,
&srcID,
DG_CONTROL,
DAT_PENDINGXFERS,
MSG_RESET,
(TW_MEMREF) &pxfers);
// Throw exception and break out of event loop.
throwJTE (env, "msg_error_unable_to_obtain_image_information_acquire");
break;
}
...
....
....
- AuthorPosts