Skip to main content

Active Page Index

Article # 308592 - Page views: 193


Question / Problem: 

How Do I Access the Page Index of a Document during KTM Validation?

Answer / Solution: 

The value can be accessed calling "ValidationForm.CurrentPageIndex". Below is a sample script to access the page index of a document during the button click event in KTM Validation.

Private Sub ValidationForm_ButtonClicked(ByVal ButtonName As String, ByVal pXDoc As CASCADELib.CscXDocument)
   Select Case ButtonName
      Case "btnActivePageIndex"
         pXDoc.Fields.ItemByName("FieldName").Text = CStr(ValidationForm.CurrentPageIndex)
   End Select
End Sub

Applies to:  

Product Version Category
KTM 6.3 Scripting
KTM 6.2 Scripting


  • Was this article helpful?