开发者

How to make medical summaries files from java application

I have made a program in Java which is used to collect medical data (p开发者_如何学Cersonal, diagnosis,treatments) from people with cancer. In this program you fill the forms and all these data are then stored to a database.

Now, what I want to make: if the user selects to see a patient's data, I want to give him the possibility to print the patient's record. I know how to print a file using java. But I don't know how to make such a file, how to form it. I mean it's not just printing "Hello world". It may need tables, colors, etc. How should I do this? Is there a way to make a prototype (ex. doc) file and then through the program fill just the data, or I have to fully form this file through my program?

Hope I was clearly understood!


Use a reporting engine like JasperReports or Birt.

These are pretty straightforward to integrate and allow fast and easy creation of printer ready documents and typically also other formats (like excel).


Have a look at JasperReports, which provides the necessary features to generate dynamic reports, including data retrieval using JDBC (Java Database Connectivity). You will need some time to learn it though.


You might want to look at flying saucer. It is an extension on iText and can take xhtml, which is useful for creating pretty pages quickly and in a easy to read format. You might even be able to use your existing pages. http://code.google.com/p/flying-saucer//

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜