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
SyntaxSODocument GetDocumentFromPath(
string i_FilePath
)
Function GetDocumentFromPath (
i_FilePath As String
) As SODocument
Dim instance As IDatabase
Dim i_FilePath As String
Dim returnValue As SODocument
returnValue = instance.GetDocumentFromPath(i_FilePath)
SODocument^ GetDocumentFromPath(
[InAttribute] String^ i_FilePath
)
Parameters
- i_FilePath
- Type: SystemString
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