Professional > Data management scripting > Publishing data > ReportingServices.ExposeToCognos component > CreatePackage
 
CreatePackage
Purpose
Builds Cognos packages and publishes them to the specified location on the Cognos Business Intelligence server. The packages are accessible to Cognos report users.
Method declaration
void CreatePackage(string PackageLocation, string CognosDataSourceName, string ActionLogFileLocation)
Parameters
PackageLocation
The package path, including the package name, on the Cognos Business Intelligence server. The path is represented as a string, such as /Public Folders/FirstPackage, which means the package named FirstPackage is in the Cognos server Content Store's Public Folders directory.
CognosDataSourceName
The data source used when building models in Cognos Framework Manager. A new data source is created if a data source does not already exist on the Cognos server.
ActionLogFileLocation
Specifies the action log file (when required). An action log file is not created unless a location is explicitly specified.
See also
ReportingServices.ExposeToCognos component