CSharp_PrintReport_Explain.html 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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# printReport 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">printReport.sln - Print a Report from IBM Cognos Connection</p>
  16. <p class="formText">The C# printReport sample program demonstrates how to run and print a report, change printer properties
  17. and how to get, add, and delete printers from the content store.</p>
  18. <br>
  19. <!-- * * * * * * * * * -->
  20. <!-- -->
  21. <!-- Dependent Files -->
  22. <!-- -->
  23. <!-- * * * * * * * * * -->
  24. <p class="FormLabel">Dependent Files</p>
  25. <p class="formText">All associated files are contained in the printReport folder.</p>
  26. <!-- * * * * * * * * * -->
  27. <!-- -->
  28. <!-- How To Run -->
  29. <!-- -->
  30. <!-- * * * * * * * * * -->
  31. <p class="FormLabel">How To Run The Sample Program</p>
  32. <p class="formText">Double click on the file ../bin/printReport.exe<br><br>
  33. A window will be opened containing:<br>
  34. &nbsp;&nbsp;&nbsp;&nbsp;- Run Option command button<br>
  35. &nbsp;&nbsp;&nbsp;&nbsp;- URL text box<br>
  36. &nbsp;&nbsp;&nbsp;&nbsp;- Select Print Option combo box<br>
  37. &nbsp;&nbsp;&nbsp;&nbsp;- Report Path and Name text box<br>
  38. &nbsp;&nbsp;&nbsp;&nbsp;- Results Display Window <br>
  39. Select a Print Option from the combo box and then click on the 'Run Option' button to run the sample program.</p>
  40. <!-- * * * * * * * * * -->
  41. <!-- -->
  42. <!-- Expected Results -->
  43. <!-- -->
  44. <!-- * * * * * * * * * -->
  45. <p class="FormLabel">Expected Results</p>
  46. <p class="formText">When the getAvailablePrinters option is selected, by default,
  47. the Results Display Window will display the first available printer found.<br>
  48. When the addPrinter option is selected, the user will be prompted to type in a
  49. name and address for the new printer.<br>
  50. When the deletePrinter option is selected, the user will be prompted to type in
  51. a name or accept the default printer name to be deleted.<br>
  52. When the changePrinterName option is selected, the user will be prompted to enter
  53. a current printer name or accept the default printer name. Then, the user
  54. will be prompted to enter a new printer name.<br>
  55. When the changePrinterAddress option is selected, the user will be prompted to enter
  56. a current printer name or accept the default printer name. Then, the user
  57. will be prompted to enter a new printer address for this printer.<br>
  58. When the startPrint option is selected, the report specified in the Report Path
  59. and Name box will be executed and sent for printing.</p>
  60. <p class="formText">This sample does not demonstrate working with parameters or prompts. Select a report that does not prompt for parameter values.</p>
  61. <!-- * * * * * * * * * -->
  62. <!-- -->
  63. <!-- Documentation -->
  64. <!-- -->
  65. <!-- * * * * * * * * * -->
  66. <p class="FormLabel">Documentation</p>
  67. <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>
  68. <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>
  69. </BODY>
  70. </HTML>