Kofax DM API Manual de usuario Pagina 40

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 528
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 39
20 CHAPTER 1
Document Objects
Dim doc As New PCDDocObject
If docnumber = "" Or versionid = "" Then
MsgBox "Check In requires that you set " _
& "the document number and " _
& "the version ID."
Exit Sub
End If
doc.SetDST DST
doc.SetObjectType "cyd_defprof"
doc.SetProperty "%TARGET_LIBRARY", library
doc.SetProperty "%OBJECT_IDENTIFIER", docnumber
doc.SetProperty "%VERSION_ID", versionid
doc.SetProperty "%STATUS", "%UNLOCK"
doc.Update
'Check for error.
Dim lngENum As Long
lngENum = doc.ErrNumber
If lngENum <> 0 Then
Dim strEDesc As String, strENum As String
strEDesc = doc.ErrDescription
strENum = CStr( lngENum )
MsgBox "Error " & strENum & ": " & strEDesc
'Handle the error...
End If
Set doc = Nothing
Set doc = New PCDDocObject
doc.SetDST DST
doc.SetObjectType "cyd_defprof"
doc.SetProperty "%TARGET_LIBRARY", library
doc.SetProperty "%OBJECT_IDENTIFIER", docnumber
doc.Fetch
'Check for error.
Dim lngENum As Long
lngENum = doc.ErrNumber
If lngENum <> 0 Then
Dim strEDesc As String, strENum As String
strEDesc = doc.ErrDescription
strENum = CStr( lngENum )
MsgBox "Error " & strENum & ": " & strEDesc
'Handle the error...
End If
Vista de pagina 39
1 2 ... 35 36 37 38 39 40 41 42 43 44 45 ... 527 528

Comentarios a estos manuales

Sin comentarios