Save printing configuration at client-side with Java reporting tool — RAQ Report

Last Post 07 Jul 2009 06:11 AM by freezea. 0 Replies.
AddThis - Bookmarking and Sharing Button
Author Messages
freezea
New Member
New Member

--
07 Jul 2009 06:11 AM
Background
For users’ convenience, RAQ Report provides a lot of printing properties. Such as page margins (left margin, right margin, top margin, bottom margin), paper direction (vertical or horizontal), paper type, paper size, etc. With these available options, users can print their reports accurately.

Sometimes, users may wish that their printing configurations can be saved at client-side. As a result, they can print reports directly without setting each time. As a professional Java reporting tool, RAQ Report realized this wonderful function after thorough research.

Commonly, a client-side computer links to a printer. So the function is designed to save the printing configuration of each report.

Then, another problem appears. A printer/report may be used by several users. Therefore, the printing configuration of each user should be saved.

Solution
With RAQ Report, it is easy to solve the problem. Users only need to call the API of RAQ Report, and write program with user information to save printing configuration.

Operation
Add servlet in web.xml:
<servlet>
<servlet-name>com.runqian.report4.usermodel.PrintSetupServlet</servlet-name>
<servlet-class>com.runqian.report4.usermodel.PrintSetupServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>com.runqian.report4.usermodel.PrintSetupServlet</servlet-name>
<url-pattern>/servlet/PrintSetupServlet</url-pattern>
</servlet-mapping>
Add savePrintSetup=”yes”

Then, a clientPrintSetup.properties configuration file will be generated automatically for saving printing configuration.

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.


Acceptable Use Policy
---