Using Jasperreport to make reports in Eclipse RCP

Source: Internet
Author: User
Tags naming convention

Eclipse RCP is great for developing Java client applications, and now it has its own Birt report project supports the use of reports in Eclipse RCP. But when I started developing four years ago, I wasn't so lucky, so how to generate reports in RCP became a headache for me.

Pondering for a few days, finally let me think of a way to use the Jasperreport report in my Eclipse RCP program:

1, the report template is stored in a server-specific resource directory.

2, the client to obtain the customer Input report parameters (query scope, grouping conditions) and the corresponding report template name (with the service end has a naming convention)

3. When the client submits the request object to the server, the server invokes the report parameters, the database connection (I will pass the JDBC parameter from the server) to the Jasperreport report engine to generate the Jprint file. The server side returns the Jprint file content to the client synchronization method.

4, the client will return the Jprint content to the temporary file, through the Swt_awt Bridge call jrviewer display Jprint file (that is, display the report)

Thinking figured out, I only used three hours to complete the client and service-side common reporting program development, alas, so said to do things to think clearly the most important, think not clear when the hands of more sleep will do it!

Look at the performance in our system, right?

BTW: The last picture of the funnel is not jasperreport generated (it did not do the funnel), is a small control I do (but pretty ugly, fortunately, we all comfort me say than no strong, really gratifying AH!!! )

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.