Chapter 9 Accessing objects using VBScript
You can manage the document versions using VBScript as follows:
You can freeze and unfreeze a document version using the following methods: Freeze(ByVal Comment As String = "") As Boolean and Unfreeze() As Boolean.
MyDocument.Freeze "Update required"
MyDocument.Unfreeze
You can lock and unlock a document version using the following methods: Lock(ByVal Comment As String = "") As Boolean and Unlock() As Boolean.
MyDocument.Lock "Protection required"
MyDocument.Unlock
You can delete a document version using the following method: DeleteVersion() As Boolean.
MyDocument.Delete
Copyright (C) 2005. Sybase Inc. All rights reserved. |