IDatabaseGetDocument Method |
Get an existing document object. Returns an error if the document is hidden.
Namespace:
SuperOffice.COM.SuperOfficeDB
Assembly:
SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
SyntaxSODocument GetDocument(
int DocumentId
)
Function GetDocument (
DocumentId As Integer
) As SODocument
Dim instance As IDatabase
Dim DocumentId As Integer
Dim returnValue As SODocument
returnValue = instance.GetDocument(DocumentId)
SODocument^ GetDocument(
[InAttribute] int DocumentId
)
Parameters
- DocumentId
- Type: SystemInt32
the ID of the document to retrieve
Return Value
Type:
SODocumentSODocument – the specified document object
ExamplesGet the document with id = 1.
This text may be copied to the notepad, and saved as a *.vbs file. Remember to change the login information.
dim objso
dim objdoc
set objso = CreateObject("superofficedb.database")
If not (objSO is nothing) Then
objso.login "<userid>", "<password>"
set objdoc = objso.getdocument(1)
msgbox "document header of document_id=1: " & objdoc.header
else
msgbox "unable to connect to database"
end if
set objso = nothing
See Also