For printing web report, users often need to print it by clicking the print button. However, sometimes users may want to print report immediately when loading the report on browser.
As a real Excel-like web reporting tool, RAQ Report provides a direct print function for users. You only need to use the tag in the JSP file to call the applet program directly. The solution is that write a print class, which inherits the direct print class DirectPrintApplet,and call the print program directly in the DirectPrintApplet.java. Then you can print the uploading report directly without the trigger program.
1. Write a print class, which inherits the direct print class DirectPrintApplet.(You can choose the DirectPrintWithoutShow name as you like).
2. Put the print class into runqianReport4Applet.jar. Remember to decompress runqianReport4Applet.jar firstly and delete the mete folder before compress it.
3. Sign the new runqianReport4Applet.jar.
4. Use the new class name instead of the called class name in the jsp when direct print while loading report.
This post is from freezea's blog
. You are welcomed cc it anywhere, and please indicate the source.
If you would like to read more articles about reporting tool, you are also welcome to refer to my blog.