Description:
Fired by IGTwainCtl just before the new page is required using Acquire, AcquireToDoc, AcquireToFile methods. This event returns the page number and the bounding image rectangle (image rectangle within which the scanning will take place) for the image that is about to be scanned.
Syntax:
Sub BeforePage(EventParams As IGTwainBeforePageEventParams)
Parameters:
Name |
Description |
EventParams.PageNum |
Returns the number of the page that is to be scanned. The number of the first page to be scanned is 1. |
EventParams.Left |
Returns the left coordinate of the selected layout rectangle that will be scanned for the current page. |
EventParams.Top |
Returns the top coordinate of the selected layout rectangle that will be scanned for the current page. |
EventParams.Right |
Returns the right coordinate of the selected layout rectangle that will be scanned for the current page. |
EventParams.Bottom |
Returns the bottom coordinate of the selected layout rectangle that will be scanned for the current page. |
EventParams.CancelScanning |
Set it to False if you want to continue scanning, set it to True if you want to cancel scanning after saving the page just scanned. |