DisplayPage
This property sets or returns the displayed DocPage specified by the zero-based index of the workdoc in the viewer.
Use this property within the VerifierFormLoad event to set the initial page that displays when the form is loaded.
You can also set this property in class level events, such as OnAction or the Validate event for fields, to navigate to a specified document page.
Note: When the Verifier option "Keep Focus on Field" is active, this option takes
precedence over any DisplayPage value set in script. If the focus is currently on a
field which is mapped to document text, any attempt to set DisplayPage results in
navigation to the mapped document page.
Syntax
DisplayPage as Long
Sample Code
If a customer requires Verifier to display a specific page of each document instead of the first one when opening the document, use the DisplayPage property in the script.
Note: Index 0 represents page 1.
The following sample code displays page 3 if the document has 4 pages or more.
Private Sub ScriptModule_VerifierFormLoad(pWorkdoc as SCBCdrPROJLib.SCBCdrWorkdoc, FormClassName as String, FormName as String)
If pWorkdoc.PageCount >=4 Then
pWorkdoc.DisplayPage = 2
End if
End Sub