CSharp_CreateReport_Explain.html 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <HTML>
  2. <HEAD>
  3. <!--
  4. Licensed Materials - Property of IBM
  5. IBM Cognos Products: DOCS
  6. (C) Copyright IBM Corp. 2005, 2008
  7. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with
  8. IBM Corp.
  9. -->
  10. <TITLE>IBM Cognos Software Development Kit C# createReport Program Sample</TITLE>
  11. <link rel="STYLESHEET" type="text/css" href="../../../webcontent/samples/samplesFonts.css">
  12. </HEAD>
  13. <BODY>
  14. <p class="headerTitle"><img src="../../../webcontent/samples/sdk/asp/images/go_logo_small.gif">&nbsp;IBM Cognos Sample Programs</p>
  15. <p class="FormLabel">createReport.sln - Create a new report in IBM Cognos Connection</p>
  16. <p class="formText">The C# createReport sample program contains methods to create a new report in the content store.</p>
  17. <br>
  18. <!-- * * * * * * * * * -->
  19. <!-- -->
  20. <!-- Dependent Files -->
  21. <!-- -->
  22. <!-- * * * * * * * * * -->
  23. <p class="FormLabel">Dependent Files</p>
  24. <p class="formText">All associated files are contained in the bin directory of the csharp directory.</p>
  25. <!-- * * * * * * * * * -->
  26. <!-- -->
  27. <!-- How To Run -->
  28. <!-- -->
  29. <!-- * * * * * * * * * -->
  30. <p class="FormLabel">How To Run The Sample Program</p>
  31. <p class="formText">Double click on the file ..\csharp\bin\createReport.exe.<br><br>
  32. A window will be opened containing:<br>
  33. &nbsp;&nbsp;&nbsp;&nbsp;- Create Report command button<br>
  34. &nbsp;&nbsp;&nbsp;&nbsp;- URL text box<br>
  35. &nbsp;&nbsp;&nbsp;&nbsp;- Results Display Window <br>
  36. 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
  37. table name and the associated report columns to be used. Click 'Run' to create the new report.
  38. Once the new report has been added to IBM Cognos Connection, the report specification is executed and
  39. the result is saved to the current working directory.</p>
  40. <p class="formText">The sample has been coded to work with the Go Sales (query) package.<br>
  41. To work with another package, you may need to edit the createReportDlg.cs to select nodes differently.<br>
  42. (Edit "tableNodes = root.SelectNodes("//folder/folder")")</p>
  43. <!-- * * * * * * * * * -->
  44. <!-- -->
  45. <!-- Expected Results -->
  46. <!-- -->
  47. <!-- * * * * * * * * * -->
  48. <p class="FormLabel">Expected Results</p>
  49. <p class="formText">A new report will be created in IBM Cognos Connection and the report specification
  50. will be executed.</p>
  51. <!-- * * * * * * * * * -->
  52. <!-- -->
  53. <!-- Documentation -->
  54. <!-- -->
  55. <!-- * * * * * * * * * -->
  56. <p class="FormLabel">Documentation</p>
  57. <p class="formText">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'.</p>
  58. <p class="formText">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.</p>
  59. </BODY>
  60. </HTML>