ImageGear Professional for Windows ActiveX
AfterPage Event

Description:

Fired by IGTwainCtl Control after each page is required using Acquire Method, AcquireToDoc Method, AcquireToFile Method.

If you are using the AcquireToFile Method, the image will be written to a file before or after this event depending on how the SavePageBeforeEvent Property is set.

Syntax:

Sub AfterPage(EventParams As IGTwainAfterPageEventParams)

Parameters:

Name Description
EventParams.Page IGPage contains the image just scanned.
EventParams.PageNum The number of the page just scanned. The number of the first page is 1.
EventParams.PendCount The number of pending pages left to be scanned. In the TWAIN lexicon the term "pending" refers to the number of pages left in the ADF or in the digital camera. TWAIN requires that the Data Source provide it with information about how many pages are "pending".
EventParams.FileName If you are using Transfer or Buffered Memory Transfer Syntax, this will be the FileName given to the page that is just scanned. If you are using Disk File Transfer, this was the FileName given to the page just scanned.
EventParams.CancelScanning Set to False if you want to continue scanning; set it to True to cancel the scanning process after saving the page just scanned.

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback