Kofax DM API Manual do Utilizador Página 73

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 528
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 72
DM API OBJECTS 53
PCDGetDoc
Example
The following example shows you can use PCDGetDoc to retrieve the
name of a file that contains a document in your DM repository.
.
.
.
Dim objGetDoc As New PCDGetDoc
objGetDoc.SetDST strDST
objGetDoc.AddSearchCriteria _
"%TARGET_LIBRARY", strLib
objGetDoc.AddSearchCriteria _
"%DOCUMENT_NUMBER", strDocNum
objGetDoc.AddSearchCriteria _
"%VERSION_ID", strVersionID
objGetDoc.Execute
If objGetDoc.ErrNumber <> 0 Then
'Error occurred.
End If
Dim lngRowCount As Long
Dim strFileName As String
'Dim bdata() As Byte
'Dim indata As Variant
lngRowCount = objGetDoc.GetRowsFound
If objGetDoc.ErrNumber <> 0 Then
'Error occurred.
End If
If lngRowCount <> 1 Then
'Possible Error. Only 1 file expected.
Else
objGetDoc.SetRow( 1 )
strFileName = objGetDoc.GetPropertyValue( _
PATH )
MsgBox “The name of the document is: “ & _
strFileName
EndIf
.
Vista de página 72
1 2 ... 68 69 70 71 72 73 74 75 76 77 78 ... 527 528

Comentários a estes Manuais

Sem comentários