Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Sunday, October 18, 2009 6:54:00 PM(UTC)

sky2009  
sky2009

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!
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Monday, October 19, 2009 11:30:29 PM(UTC)
Maen Hasan

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)

sky2009  
sky2009

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)
Maen Hasan

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.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.067 seconds.