This event is generated just before an image is scanned with the scan device.
[Visual Basic]Public Event BeforeScan As
BeforeScanEventHandler
[C#]public event BeforeScanEventHandler
BeforeScan;
Event Data
The event handler receives arguments of type BeforeScanEventArgs
Explanation
The BeforeScan event is generated just before an image is scanned with the scan device. Information about the actual image data transfered in this event can be referenced through the BeforeScanEventArgs arguments.
Regarding properties of the BeforeScanEventArgs class
If setting the Scan.PaperSize property to
UndefinedSize (or values of 1000 or more), the values for the Width
and Height properties of this class can be set to -1.
To cancel, set the Scan.Cancel property to True
within this event.