ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 twain question
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

pierrotsc

USA
499 Posts

Posted - Oct 29 2012 :  10:39:57  Show Profile  Reply
Is it possible to find out if a twain scanner is indeed connected or powered on before calling the acquire command?
Imageen finds the twain driver regardless if the scanner is indeed active.
I would like to be able to check its status before i try to acquire an image.

Thanks for any help.
P

w2m

USA
1990 Posts

Posted - Oct 29 2012 :  12:12:12  Show Profile  Reply
The first problem to solve is to determine if the Printer/Scanner is online. Unfortunately baised on web searches it appears that there is no way to do this unless a job has been sent to the printer before calling the function.

William Miller
Go to Top of Page

pierrotsc

USA
499 Posts

Posted - Oct 29 2012 :  12:46:26  Show Profile  Reply
That is what I thought.I wish there was a way to probe the scanner to find out if it is active. Oh well.
Go to Top of Page

ehkhalid

27 Posts

Posted - Oct 30 2012 :  01:37:14  Show Profile  Reply
Hi,
I think there are a way to find if scanner is power on and connected, by checking if scanner is in the list of connected sub device, you have to use windows api to get this list and then check if the name of your scanner is in the list or not.

Hope this help.
Go to Top of Page

pierrotsc

USA
499 Posts

Posted - Oct 30 2012 :  03:42:33  Show Profile  Reply
Not really. I have no clues on how to use windows api. I guess i was looking for a imageen command instead.
Thanks for the reply.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: