IBM Cognos Sample Programs
createReport.sln - Create a new report in IBM Cognos Connection
The C# createReport sample program contains methods to create a new report in the content store.
Dependent Files
All associated files are contained in the bin directory of the csharp directory.
How To Run The Sample Program
Double click on the file ..\csharp\bin\createReport.exe.
A window will be opened containing:
- Create Report command button
- URL text box
- Results Display Window
Click on the 'Create Report' button to begin the sample program and display a dialog box that will prompt for a report name. Then select the
table name and the associated report columns to be used. Click 'Run' to create the new report.
Once the new report has been added to IBM Cognos Connection, the report specification is executed and
the result is saved to the current working directory.
The sample has been coded to work with the Go Sales (query) package.
To work with another package, you may need to edit the createReportDlg.cs to select nodes differently.
(Edit "tableNodes = root.SelectNodes("//folder/folder")")
Expected Results
A new report will be created in IBM Cognos Connection and the report specification will be executed.
Documentation
The IBM Cognos Software Development Kit Developer Guide contains additional information about the samples. See the chapter titled 'Methods' and the appendix titled 'Code Samples and Language-Specific Coding Practices'.
Please note that the samples are not intended to be treated as end-user applications. Refer to the sample code for examples of how to use the API when developing your own applications.