| View previous topic :: View next topic |
| Author |
Message |
becklery
Joined: 18 Apr 2009 Posts: 45
|
Posted: Fri Jul 31, 2009 2:44 pm Post subject: Print web report immediately while loading report with Java reporting tool |
|
|
Background
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.
Solution
As a real Excel-like web reporting tool, RAQ Report provides a direct print function for users. You only need to use the tag <object></object> 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.
Easy operation
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 can refer to his blog. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|
|