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 Report plugin, which is needed to create a report object.
The InfoObjects Add method creates a new InfoObject based on the type of plugin you give it. In this case, it creates a new Report object and adds it to the collection. It is important to note that a report object is a type of InfoObject.
The report data may be specified in the form of a path and filename, or in a binary stream format that contains the report data. If a path is specified it must be a valid path on the WCS. For information on transferring the file from a browser to the web server, refer to your web server documentation.
The folder into which the report is to be placed is set using the report's parent ID. If the ID is zero or the ID does not belong to a folder, the report will not be added; otherwise it is placed in the folder specified by the SI_PARENTID Property.
This adds the report to the File Repository Server and updates the APS InfoStore.
These steps are illustrated in the following Example.
Crystal Decisions, Inc. http://www.crystaldecisions.com Support services: http://support.crystaldecisions.com |