(Msg. 1) Posted: Tue Sep 15, 2009 10:16 pm
Post subject: Print web report immediately while loading report
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 Reportprovides 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 are also welcome to refer to his blog.
All times are: Eastern Time (US & Canada) (change)
Page 1 of 1
You can post new topics in this forum You can 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