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 Tue May 22, 2012 2:17 am




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Scan Setting
PostPosted: Thu Oct 14, 2010 10:09 pm 
Offline

Joined: Tue Aug 03, 2010 8:33 pm
Posts: 5
Hi

i have some trouble on device settings via UI. How come that when i set the following to:
Plugin.IfFeederEnabled = true; // ADF
Plugin.IfDuplexEnabled = true; // Duplex
Plugin.PixelType = 0
Plugin.Brightness = 50
Plugin.Contrast = 50
Plugin.Resolution = 200

and when i alert the values it became

Plugin.IfFeederEnabled = false; // ADF
Plugin.IfDuplexEnabled = false; // Duplex
Plugin.PixelType = 2
Plugin.Brightness = 0
Plugin.Contrast = 0
Plugin.Resolution = 100 ?

Code:
function btnScan_onclick()
{
     var Plugin = document.embeds[0];
     var i;
     Plugin.SelectSourceByIndex(document.getElementById("source").selectedIndex);
         
     Plugin.CloseSource();   
     Plugin.OpenSource();
     Plugin.IfShowUI = false;
     Plugin.IfFeederEnabled = true; // ADF
     alert(Plugin.IfFeederEnabled);
     Plugin.IfDuplexEnabled = true; // Duplex
     Plugin.PixelType = 0;
     alert(Plugin.PixelType);
     Plugin.Brightness = 50;
     alert(Plugin.Brightness);
     Plugin.Contrast = 50;
     alert(Plugin.Contrast);
     Plugin.Resolution = 200;
     alert(Plugin.Resolution);
     Plugin.IfDisableSourceAfterAcquire = true;
     Plugin.AcquireImage();
}



what's the possible problem? I don't think that is my code or is it the device? because as of now I'm using a webcam(for testing) but this code will run in CANON DR-9050C.

Thanks in advance. I'm looking for your asap response.

Cheers!

katie


Top
 Profile  
 
 Post subject: Re: Scan Setting
PostPosted: Fri Oct 15, 2010 12:14 am 
Offline
User avatar

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

Thank you for the detailed info.

The code seems all right.

Please check whether the webcam is using a TWAIN-compatible driver. For more info, please check out the link below:
http://kb.dynamsoft.com/questions/72/Ho ... patible%3F

If the device is not using a TWAIN driver, the methods/properties/events of Dynamic Web TWAIN may not support it.

Please keep me updated on this.

_________________
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  
 
 Post subject: Re: Scan Setting
PostPosted: Fri Oct 15, 2010 2:04 am 
Offline

Joined: Tue Aug 03, 2010 8:33 pm
Posts: 5
Thanks Catherine.

I can acquire image from the webcam using the twacker, but still it is default in the values that I was mentioned before.

Is there an instance that the methods/properties/events of Dynamic Web TWAIN may not work even the device is twain compatible?
If yes,how can I assure if the code will work in the actual device?


Top
 Profile  
 
 Post subject: Re: Scan Setting
PostPosted: Sun Oct 17, 2010 5:40 pm 
Offline
User avatar

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

Thank you for the update.

Quote:
Is there an instance that the methods/properties/events of Dynamic Web TWAIN may not work even the device is twain compatible?
If yes,how can I assure if the code will work in the actual device?


Dynamic Web TWAIN is based on TWAIN Specification 1.9. Normally, if a device is completely TWAIN compatible, it's supported by Dynamic Web TWAIN. Up to now, we haven't encountered such a TWAIN-compatible driver which is not supported by Dynamic Web TWAIN.

To better pinpoint the cause of the issue, you can contact us at livehelp to have an online meeting:
http://www.dynamsoft.com/support/livehelp.aspx

_________________
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  
 
 Post subject: Re: Scan Setting
PostPosted: Mon Oct 18, 2010 1:20 am 
Offline

Joined: Tue Aug 03, 2010 8:33 pm
Posts: 5
hi Catherine,

it's fine now.. thanks for the help :)

cheers!


Top
 Profile  
 
 Post subject: Re: Scan Setting
PostPosted: Tue Oct 19, 2010 12:02 am 
Offline
User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1075
Happy to hear that. :D May I know what was the cause?

Regards,

_________________
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  [ 6 posts ] 

It is currently Tue May 22, 2012 2:17 am


Who is online

Users browsing this forum: hlryndjugycm 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:  

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