This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Sunday, October 18, 2009 6:54:00 PM(UTC)
Groups: Registered
Posts: 15
Dear all,
DG_CONTROL, DAT_PENDINGXFERS, MSG_RESET
How to use leadtools twain Interface to show above's combination.
My leadtools version is 15.0J.
Thank you!
#2
Posted
:
Monday, October 19, 2009 11:30:29 PM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
What exactly are you trying to accomplish? Do you want to
control the number of the scanned pages?
Thanks,
Maen Badwan
LEADTOOLS Technical Support
#3
Posted
:
Tuesday, October 20, 2009 11:59:28 PM(UTC)
Groups: Registered
Posts: 15
I use scanner type is kodak 800.
I start to scan when scanner is sleep.
In this case,scanner will hung up.
So I will call a method to stop scanner like follow source.
But the follow source is C.
I want to use leadtool interface(vb.net version) to do the same thing.
But I don't kown how to do.
long CTwscanCtrl::TwFuncStopScanner()
{
TW_UINT16 twRC = TWRC_FAILURE;
int nRet=0;
TW_PENDINGXFERS twPendingXfer;
twRC = glpfnDSM_Entry(&gAppId,
&gSourceId,
DG_CONTROL,
DAT_PENDINGXFERS,
MSG_RESET,
(TW_MEMREF)&twPendingXfer);
if (twRC != TWRC_SUCCESS) {
nRet = -1;
//sTwFuncDspErrDetail("DAT_PENDINGXFERS-MSG_RESET", twRC);
CTwscanCtrl::sTwFuncLogMessage("TwFuncResetScanner - MSG_RESET(中止)エラー");
}
return nRet;
}
#4
Posted
:
Wednesday, October 21, 2009 4:52:15 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
I'm afraid our toolkit does not provide the ability to send such a control message.
You might solve the problem by shutting down the Twain session and starting a new session.
Thanks,
Maen Badwan
LEADTOOLS Technical Support
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.