Click or drag to resize

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
Syntax
SODocument GetDocument(
	int DocumentId
)

Parameters

DocumentId
Type: SystemInt32
the ID of the document to retrieve

Return Value

Type: SODocument
SODocument – the specified document object
Examples

Get 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.

VB
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