IBM Cognos Sample Programs

AddReport.sln - Creates a new Report Object.

The C# AddReport sample program creates a Report Object in the content store based on file you provide containing a valid xml report specification.


Dependent Files

You will need to generate an xml file containing your desired report specification.

How To Run The Sample Program

Double click on the file ../bin/AddReport.exe

A window will be opened containing:
    - Option selection dropdown box
    - Run Option command button
    - URL text box
    - Results Display Panel
Select a sample option from the dropdown list. Click on the 'Run Option' button to run the sample program. Use the dialog box to select your xml file.

Expected Results

If you selected the 'Validate Specification' option, your report specification will be validated. Success or failure will be reported in the output pane. If you selected the 'Add Specification to the Content Store' option, the xml file will be validated, and, if successful, a new report will be created in the Content Store. You will be prompted to provide a name for the new report.

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.