Desktop User Guides > Professional > Data management scripting > Publishing data > ReportingServices.ExposeToCognos component > CreatePackage
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)
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.
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.
Specifies the action log file (when required). An action log file is not created unless a location is explicitly specified.
ReportingServices.ExposeToCognos component