The following procedure assumes you have already logged onto the APS and have a current session (see Authenticating and logging on the user for information on creating a session):
The PluginManager allows you to retrieve the Folder plugin, which is needed to create a new folder.
The Add method creates a new InfoObject based on the type of plugin you give it. In this case, it creates a new folder in the InfoObjects Collection. It is important to note that a folder object is a type of InfoObject.
The location in the folder tree is set using the folder's parent ID. If the ID is zero, it is a top level folder; otherwise it is placed under the folder specified by the SI_PARENTID Property.
Crystal Decisions, Inc. http://www.crystaldecisions.com Support services: http://support.crystaldecisions.com |