IBM Cognos Sample Programs
Email.sln - Email a report to a user or contacts
The C# Email sample program contains methods that execute a report and send it to a particular user or contact list members.
Dependent Files
All associated files are contained in the Email folder.
How To Run The Sample Program
Double click on the file ../bin/Email.exe
A window will be opened containing:
- Email command button
- URL text box
- Select Email Option combo box
- Select Report Option combo box
- Report Path and Name text box
- Results Display Window
Select Email Option from the combo box and then click on the 'Email' button to run the sample program.
Expected Results
When the 'Email Selected User' option is selected, the user is prompted to select an available email address for the email. When the 'Email' command button is clicked on this form, the program executes the selected report and sends the output to the email address that was provided.
When the 'Email All Contacts' option is selected, and the 'Email' command button is clicked, the program executes the selected report and sends the output to all contact members.
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.