Java_PrintUI_Explain.html 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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 Java PrintUI 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">PrintUI.java - Print a Report.</p>
  16. <p class="formText">The Java PrintUI sample program demonstrates how to run and print a report, change printer properties and how to get, add, and delete printers from the content store.</p>
  17. <br>
  18. <!-- * * * * * * * * * -->
  19. <!-- -->
  20. <!-- Dependent Files -->
  21. <!-- -->
  22. <!-- * * * * * * * * * -->
  23. <p class="FormLabel">Dependent Files</p>
  24. <p class="formText">Associated files are contained under the java sample folder.<br>
  25. Additional files required for running are identified in the CLASSPATH definitions in run.bat file.</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 run.bat.<br><br>
  33. A window will be opened containing:<br>
  34. &nbsp;&nbsp;&nbsp;&nbsp;- Report selection dropdown box<br>
  35. &nbsp;&nbsp;&nbsp;&nbsp;- Sample Option selection dropdown box<br>
  36. &nbsp;&nbsp;&nbsp;&nbsp;- Run Option command button<br>
  37. &nbsp;&nbsp;&nbsp;&nbsp;- URL text box<br>
  38. &nbsp;&nbsp;&nbsp;&nbsp;- Output Pane<br>
  39. Select an option from the dropdown box and click on the 'Run Option' button to run the sample program.
  40. If you select '<b>startPrint</b>', you must also specify a report in Report selection dropdown box.</p>
  41. <!-- * * * * * * * * * -->
  42. <!-- -->
  43. <!-- Expected Results -->
  44. <!-- -->
  45. <!-- * * * * * * * * * -->
  46. <p class="FormLabel">Expected Results</p>
  47. <p class="formText">
  48. When the getAvailablePrinters option is selected, the Output pane will display the list of available printers.<br>
  49. When the addPrinter option is selected, the user will be prompted to type in a name and address for the new printer.<br>
  50. When the deletePrinter option is selected, the user will be prompted to type in a name or accept the default printer name to be deleted.<br>
  51. When the changePrinterName option is selected, the user will be prompted to enter a current printer name or accept the default printer name. Then, the user will be prompted to enter a new printer name.
  52. When the changePrinterAddress option is selected, the user will be prompted to enter a current printer name or accept the default printer name. Then, the user will be prompted to enter a new printer address for this printer.
  53. When the startPrint option is selected, the report specified in the Report Path and Name box will be executed and sent for printing.
  54. <p class="formText">.</p>
  55. <!-- * * * * * * * * * -->
  56. <!-- -->
  57. <!-- Documentation -->
  58. <!-- -->
  59. <!-- * * * * * * * * * -->
  60. <p class="FormLabel">Documentation</p>
  61. <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>
  62. <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>
  63. </BODY>
  64. </HTML>