Click or drag to resize

TwainController Events

The TwainController type exposes the following members.

Events
  NameDescription
Public eventCode exampleAcquireCanceled
This event will fire if the user has canceled the acquisition.
Public eventCode exampleAcquireFinished
This event will fire when all of the images have been acquired. This is useful when a document feeder is used.
Public eventCode exampleBeforeTwainDataTransfer
This event will fire before the data is transferred from the device, allow the transfer to be canceled.
Public eventCode exampleFileTransfer
This event will fire just before acquiring an image directly to file. You must fill in the FileName property of the FileTransferEventArgs object.
Public eventCode exampleImageAcquired
This event will fire for each image acquired.
Public eventMemoryDataTransfer
This event is raised during a memory transfer to allow developers to handle processing the data instead of DotTwain.
Public eventMemoryFileTransfer
This event is raised during a memory file transfer before each image is scanned. Use this event to indicate the file format for the image and provide a Stream to store the image into.
Public eventCode exampleTwainDataTransfer
This event fires after the data has been transferred but before it has been processed by DotTwain.
Public eventTwainException
Raised when there is an exception in the TwainController. If this event is not handled, the exception will be thrown instead.
Top
See Also