How do I produce system Results that can be printed? Due to security limitations imposed by Java, applets cannot directly write to the local printer or hard drive. This prevents an applet from being able to print directly. There are two options. If the system has Results that will all fit within the applet window, the Browser's Print button can be used to print the page containing the applet. This will not work if the applet has scroll bars, and is not displaying all of its contents at one time. The Print Screen option will only print exactly what is on the screen. To print a larger Results screen, it is necessary to use the SaveReport and getReport commands. SaveReport calls a program on the server that writes the Results to a temporary file there. Java allows an applet to write back to the server. The DisplayReport command displays the Results in a new Browser window. This window is just a normal browser window, not the Corvid Runtime applet, and can be printed with the normal browser print commands, which will print the entire window. In addition, if the report is created using RTF, most browsers will open a word processor (typically MS Word) to display the document. The print functions from the word processor can then be used to print the Results. Using the SaveReport and DisplayReport commands requires that the Corvid server-side programs be installed on the server. See the Corvid documentation on setting these up. If the system is being run as an application (not an applet), it can write directly to the hard disk. This allows writing temporary files and then calling a text editor (e.g. Notepad) to display and print the text. Another option is to use the Corvid Servlet Runtime. In that case, all user interface screens are designed with HTML templates. A report page can easily be created and displayed in the user's browser window. This page is a "normal" HTML page, rather than the content of an applet window, and can be directly printed or saved using the Brower functions. |