Click or drag to resize

IDatabaseGetDocumentFromPath Method

Find out if a given document is archived in SuperOffice. Returns the corresponding document object or NULL if no docplugin can recognize the path.

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
SODocument GetDocumentFromPath(
	string i_FilePath
)

Parameters

i_FilePath
Type: SystemString

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