Leadtools TWAIN (Leadtools.Twain assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
AcquireMultiPage Event
See Also 
Leadtools.Twain Namespace > TwainSession Class : AcquireMultiPage Event



(Document/Medical only) Occurs twice for each scanned page, if the EnableAcquireMultiPageEvent property is set to true.

Syntax

Visual Basic (Declaration) 
Public Event AcquireMultiPage As EventHandler(Of TwainAcquireMultiPageEventArgs)
Visual Basic (Usage)Copy Code
Dim instance As TwainSession
Dim handler As EventHandler(Of TwainAcquireMultiPageEventArgs)
 
AddHandler instance.AcquireMultiPage, handler
C# 
public event EventHandler<TwainAcquireMultiPageEventArgs> AcquireMultiPage
C++/CLI 
public:
event EventHandler<TwainAcquireMultiPageEventArgs^>^ AcquireMultiPage

Event Data

The event handler receives an argument of type TwainAcquireMultiPageEventArgs containing data related to this event. The following TwainAcquireMultiPageEventArgs properties provide information specific to this event.

PropertyDescription
Cancel Set to true to abort the acquire operation.
FileName Indicates the filename into which the current multipage scanning operation is saving pages that are acquired.
FinishScan Gets a value that represents the status of the scanning process.
PageNumber Indicates the current page number of the scan.

Example

Remarks

This event will be fired two times. The event is fired the first time when the TWAIN source begins scanning the page. The event is fired the second time when the TWAIN source has finished scanning the page.

For more information, refer to How to Acquire from the Twain Source.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also