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 3:01 pm




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: How to define a default device?
PostPosted: Tue May 18, 2010 9:25 am 
Offline

Joined: Tue May 18, 2010 9:18 am
Posts: 1
Hello,

Is it possible to define the name of the scanner or camera device so the user doesn't have to chose?
I am currently using DynamicWebTWAIN version 5.2.

Thanks in advance,

Vitor Fernandes


Top
 Profile  
 
 Post subject: Re: How to define a default device?
PostPosted: Mon May 24, 2010 3:55 am 
Offline
User avatar

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

Please add the following lines in the scan function of your code. And your scanner will be chose automatically.

function btnScan_onclick()
{

var i,j;
for(i=0;i<frmScan.DynamicWebTwain1.SourceCount;i++)
{
if(frmScan.DynamicWebTwain1.SourceNameItems(i) == "The name of your scanner");//Change this line accordingly.
j = i;
}
frmScan.DynamicWebTwain1.SelectSourceByIndex(j);

..........
}

Sincerely,

_________________
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 3:01 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