Click or drag to resize

IDocumentSetDefaults Method

Populate the object with default values, such as setting the owner to the current user. Uses the UserPreferences table to set the predefined default settings for a document. The SetDefaults method is only available for current objects in this version of SuperOfficeDB Type Library

Namespace:  SuperOffice.COM.SuperOfficeDB
Assembly:  SuperOfficeDB.Interop (in SuperOfficeDB.Interop.dll) Version: 8.0.0.0
Syntax
void SetDefaults()

Implements

IModelBaseSetDefaults
Examples

SetDefaults

This text may be copied to the notepad, and saved as a *.vbs file. Remember to change the login information.

VB
Dim objSO
Set objSO = CreateObject("SuperOffice.Application")
If not (objSO is nothing) Then
    objSO.CurrentDocument.SetDefaults()
    msgbox "Take a look at the current document now, when you click OK the changes will be cancelled."
    objSO.CurrentDocument.CancelChanges()
else
    MsgBox "Unable to connect to database"
end if
Set objSO = Nothing

See Also