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:44 am




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: To show an alert on scan button click
PostPosted: Sat Feb 26, 2011 4:21 am 
Offline

Joined: Sat Feb 26, 2011 4:09 am
Posts: 1
Is there any way out to show an alert before scanning any document. I want to prompt the user that scan option selected is Colored, before scanning every document. What is the best way to do that? Please respond as early as possible.

Thanks in advance.


Top
 Profile  
 
 Post subject: Re: To show an alert on scan button click
PostPosted: Sun Feb 27, 2011 11:20 pm 
Offline
User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1075
You can add the alert/warning message before AcquireImage. Here is a simple sample for you:
Code:
      function btnScan_onclick()
      {
         frmScan.DynamicWebTwain1.SelectSource();
         frmScan.DynamicWebTwain1.OpenSource();   
         if(frmScan.DynamicWebTwain1.PixelType!=2)
         {
             alert("Please choose RGB.");
             return;
         }
         frmScan.DynamicWebTwain1.AcquireImage();
      }

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


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