Document objects, Fetching a dm document object, Document objects 19 – Kofax DM API User Manual

Page 39

Advertising
background image

T

HE

DM A

RCHITECTURE

19

Document Objects

reGrid.row = reGrid.RowSel

reGrid.Col = 1

txtSelDocNumber = reGrid.Text

docnumber = reGrid.Text

End Sub

Document Objects

The steps for working with the

PCDDocObject

object and other DM

API objects are as follows:

1 Set the DST.

2 Set the object type property to the name of the form.

3 Set the library as a property of the object.

4 Set the object properties, each of which requires a name/value

pair.

5 Once all the relevant properties have been set, create the object.

There are also methods for fetching information on the properties of an
object as well as deletion and update methods.

Fetching a DM

Document Object

The following example fetches a DM document object.

.

.

.

Attribute VB_Name = "frmFetchDoc"

Attribute VB_GlobalNameSpace = False

Attribute VB_Creatable = False

Attribute VB_PredeclaredId = True

Attribute VB_Exposed = False

Option Explicit

Dim ret As Boolean

Dim i As Long

Dim FileName As String

Dim FetchFlag As Boolean


Private Sub cmdCheckIn_Click()

Advertising