Chapter 9 Accessing objects using VBScript


Extracting repository documents

There are two ways to extract a repository document using VBScript:

Generic way

To extract a repository document you must:

Example

set C = RepositoryConnection
C.Open
Dim D, P
set P = Nothing
for each D in C.ChildObjects
if D.IsKindOf (cls_RepositoryModel) then
D.ExtractToFile ("C:\temp\OO.OOM")
end if
next

Specific way

To extract a RepositoryModel document or a RepositoryReport document you must:

Example

set MyModel = OpenModel ("C:\temp\OO3.OOM")
MyModel.UpdateFromRepository 

 


Copyright (C) 2005. Sybase Inc. All rights reserved.