TWAIN ActiveX Control, Plug-in, Scanner SDK, Component, HTTP Control/SDK

Dynamsoft TWAIN Products

Support Community for TWAIN Control/Component/SDK for Scanning Solutions
* Login   * Register
* FAQ    * Search

It is currently Sun May 20, 2012 2:08 pm




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: detecting a scanner and DWT interface on a users pc.
PostPosted: Mon Aug 08, 2011 12:55 pm 
Offline

Joined: Mon Jul 19, 2010 1:27 pm
Posts: 9
We have DWT as part of a page that gets loaded when entering a new job. Some people have scanners attached to their pc and some don't. is there anyway to determine if the user has a scanner and the DWT installed? For those that don't it is causing all kinds of problems.


Top
 Profile  
 
 Post subject: Re: detecting a scanner and DWT interface on a users pc.
PostPosted: Tue Aug 09, 2011 2:23 am 
Offline
User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1075
Hi,

To check whether there is a driver installed on a machine, you can use the SourceCount property. If the property returns 0, it indicates that no driver is installed.

If you have a driver installed on the machine, you can take advantage of the OpenSource method. The scanner is not available for scanning if OpenSource returns false.

To check whether the control has been installed, you can call one of Dynamic Web TWAIN's property or method when loading the page. For instance, you can call ErrorCode in the OnPageLoad function. If you get 0 (successful) from this property, it means the control has been initialized successfully.

_________________
Catherine Sea
TWAIN Support Team
TWAIN ActiveX/Plug-in for Web Applications, Scanner COM Control
TWAIN .NET Component/SDK for Desktop Applications

Follow me @Twitter, Facebook
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

It is currently Sun May 20, 2012 2:08 pm


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron

Copyright © 2010 Dynamsoft Corporation. All Rights Reserved. | Knowledge Base | Source Control Blog