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:55 pm




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Multifeed upload
PostPosted: Mon Jun 27, 2011 1:16 am 
Offline

Joined: Thu Jun 16, 2011 2:25 am
Posts: 3
Hi,

In this code:

Code:
Dim iDocumentCounter As Integer
iDocumentCounter = 0 'Set initialize value

Private Sub BeginScan()
    Twain.OpenSource
    Twain.IfShowUI = False
    Twain.IfDisableSourceAfterAcquire = True
    Twain.IfTiffMultiPage = False    'Do not save as multi-page TIFF

    If Twain.Duplex <> 0 Then
        Twain.IfDuplexEnabled = True  'Enable duplex
    End If
    If Twain.IfFeederEnabled = True Then
        Twain.XferCount = -1   'Scan multiple images
        Twain.IfAutoFeed = True  'Auto feed
        If Twain.IfFeederLoaded = True Then
            Twain.AcquireImage
        End If
    End If
End Sub

Private Sub Twain_OnPosttransfer()
    iDocumentCounter = iDocumentCounter + 1

    If Twain.SaveAsTIFF("c:\Image\" + Str(iDocumentCounter) + ".tif", 0) = False Then
        MsgBox Twain.ErrorString
    End If
End Sub


does this mean that if there are multiple pages to be scanned, the BeginScan method will be called for every page? or is it that the Twain.AcquireImage will only be called per page?

One more thing, is it possible to collect all multi-scanned page before uploading it?

Thanks,

Renzi


Top
 Profile  
 
 Post subject: Re: Multifeed upload
PostPosted: Mon Jun 27, 2011 2:55 pm 
Offline

Joined: Thu Jun 23, 2011 9:00 am
Posts: 3
I have an answer to your second question
Code:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        dynamicDotNetTwain.MaxImagesInBuffer = 15
  End Sub


That's for put mutiple pages scanned in a dynamicDotNetTwain

I think :)


Top
 Profile  
 
 Post subject: Re: Multifeed upload
PostPosted: Mon Jun 27, 2011 6:00 pm 
Offline
User avatar

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

Pprogramer is right. If you want to get a multi-page TIFF file, you need to scan multiple pages into the control by setting the MaxImagesInBuffer property.
http://www.dynamsoft.com/help/TWAIN/Web ... Buffer.htm

Afterwards, you can call the SaveAllAsMultiPageTIFF method in OnPostAllTransfers to save all scanned images as a multi-page TIFF file.
http://www.dynamsoft.com/help/TWAIN/Web ... geTiff.htm
http://www.dynamsoft.com/help/TWAIN/Eve ... nsfers.htm

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

It is currently Sun May 20, 2012 3:55 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