CurrentDocSetPage (Method) - CurrentDocSetPage (Method) - AnyDoc - OCR for AnyDoc - AnyDoc/OCR-for-AnyDoc/Foundation-23.1/OCR-for-AnyDoc-Programming-Reference-Guide/VBScript-Objects-Properties-and-Methods/Individual-Object-Methods/CurrentDocSetPage-Method - Foundation 23.1 - Foundation 23.1

OCR for AnyDoc Programming Reference Guide

Platform
AnyDoc
Product
OCR for AnyDoc
Release
Foundation 23.1
License
ft:lastPublication
2026-10-21T08:07:08.864000
ft:locale
en-US

Description

Read-only. Returns the current data image's page number in the active document set. This is used to determine if you are on the first or last page of a doc set to trigger an event.

CurrentDocSetPage always returns a value of one in Preview mode, Interactive Processing mode, or when not utilizing the document set feature.

Applicable Events

Post Extract, AnyApp Post Extract, Pre-Verify, Interactive, Verification Function Key (F-Key), Post-Verify

Syntax

object.CurrentDocSetPage [ bIncludeAttachments ]

Parameters

Object is a reference to the Form object. For more information, see Form Object (page Form Object).

CurrentBatchPage is the command.

bIncludeAttachments is an optional parameter. If a True value is passed, the CurrentDocSetPage property includes attachments in the page count. This is the default. If a False value is passed, attachment pages are not included in the count.

Example

MsgBox "Current Docset Number is " & Form.CurrentDocSetNumber