| Visual Basic (Declaration) | |
|---|---|
Public Event AcquireEvent As EventHandler(Of WiaAcquireEventArgs) | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As WiaSession Dim handler As EventHandler(Of WiaAcquireEventArgs) AddHandler instance.AcquireEvent, handler | |
| C# | |
|---|---|
public event EventHandler<WiaAcquireEventArgs> AcquireEvent | |
| C++/CLI | |
|---|---|
public: event EventHandler<WiaAcquireEventArgs^>^ AcquireEvent | |
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.
| Property | Description |
|---|---|
| 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. |
Refer to WiaSession.IsAvailable.Refer to WiaSession.IsAvailable.
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.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7
Copy Code