LEADTOOLS WIA (Leadtools.Wia assembly)
LEAD Technologies, Inc

AcquireEvent Event






Occurs for each page acquired from the currently selected WIA source using the Acquire or AcquireSimple methods and it will also get called for each end of page to provide the user with the EndOfPage flag through the Flags member of the WiaAcquireEventArgs event argument to indicate the end of each page transfer.
Syntax
public event EventHandler<WiaAcquireEventArgs> AcquireEvent
'Declaration
 
Public Event AcquireEvent As EventHandler(Of WiaAcquireEventArgs)
'Usage
 
Dim instance As WiaSession
Dim handler As EventHandler(Of WiaAcquireEventArgs)
 
AddHandler instance.AcquireEvent, handler
public event EventHandler<WiaAcquireEventArgs> AcquireEvent
add_AcquireEvent(function(sender, e))
remove_AcquireEvent(function(sender, e))

public:
event EventHandler<WiaAcquireEventArgs^>^ AcquireEvent
Event Data

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

PropertyDescription
Cancel Aborts the acquire operation.
FileName Indicates the full filename and path into which the current scanning operation is saving the page(s) that are being acquired.
Flags Indicates the start and the end of each acquired page.
Image Gets the IRasterImage which holds the image data acquired from the WIA Data Source.
Percent Indicates the percent completion of the acquisition process from the WIA source.
Remarks

If the user acquired several pages at the same time, a separate event occurs for each page.

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

Example
Refer to WiaSession.IsAvailable.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

WiaSession Class
WiaSession Members
Startup Method
Shutdown Method
IsAvailable Method
SelectDevice Method
SelectDeviceDlg Method
Acquire Method
AcquireSimple Method

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.