我在 Java实施了一项方案,用于收集癌症患者的医疗数据(个人、诊断、治疗)。 在此方案中,你填写表格,然后将所有数据储存到数据库。
现在,我想做的是:如果用户选择看病人的数据,我想让他能够打印病人的记录。 我知道如何用java打印文件。 但我不知道如何提出这种档案,如何形成。 我指的是它不仅仅是印刷“我们的世界”。 它可能需要表格、颜色等。 我应如何这样做? 是否有办法编制原型(ex. doc)档案,然后通过该方案填写数据,或者我必须通过我的方案充分编制这一档案?
我希望我清楚地理解!
我在 Java实施了一项方案,用于收集癌症患者的医疗数据(个人、诊断、治疗)。 在此方案中,你填写表格,然后将所有数据储存到数据库。
现在,我想做的是:如果用户选择看病人的数据,我想让他能够打印病人的记录。 我知道如何用java打印文件。 但我不知道如何提出这种档案,如何形成。 我指的是它不仅仅是印刷“我们的世界”。 它可能需要表格、颜色等。 我应如何这样做? 是否有办法编制原型(ex. doc)档案,然后通过该方案填写数据,或者我必须通过我的方案充分编制这一档案?
我希望我清楚地理解!
使用报告引擎,如JasperReports或Birt。
这些只是简单易懂的,可以整合并允许迅速和容易地制作打印机的现成文件,而且通常也采用其他格式(如Excel)。
是否对JasperReports提供了生成动态报告的必要特征,包括利用JDBC(Java数据库联网)检索数据。 你们将需要一些时间学习。
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//
Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...
Check this, List<String> list = new ArrayList<String>(); for (int i = 0; i < 10000; i++) { String value = (""+UUID.randomUUID().getLeastSignificantBits()).substring(3, ...
I am in the middle of solving a problem where I think it s best suited for a decorator and a state pattern. The high level setting is something like a sandwich maker and dispenser, where I have a set ...
I have been trying to execute a MS SQL Server stored procedure via JDBC today and have been unsuccessful thus far. The stored procedure has 1 input and 1 output parameter. With every combination I ...
I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...
If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...
I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....
I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...