IBM Cognos Sample Programs
saveOptions.sln - Saves the report output or saves as a new report name.
The C# saveOptions sample program contains methods to save a report or save the report as a different name.
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/save.exe
A window will be opened containing:
- Run Option command button
- URL text box
- Report Path and Name text box
- Select option combo box
- Results Display Window
Click on the 'Run Option' button to run the sample program.
Expected Results
If the 'Save Report Output' option is selected, then the report specified will be saved in IBM Cognos Connection. If the 'Save Report As' option is selected, then the report specified will be saved as 'SaveASReport' by default in IBM Cognos Connection. The name can be changed within the code.
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.