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!!! )