IBM Cognos Sample Programs

ExecuteReport.sln - Execute and View a Report.

The C# Execute Reports sample program runs a report and saves the output in a specified format.


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 ../bin/ExecReport.exe

A window will be opened containing:
    - Report Type dropdown box
    - Report selection dropdown box
    - Execute Report command button
    - URL text box
    - Results Display Pane
Click on the 'Execute Report' button to run the sample program.

Expected Results

The report is executed and the results are displayed in the Results Window. The report output is not persisted in the content store.

This sample does not demonstrate working with parameters or prompts. Select a report that does not prompt for parameter values.

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.