Word 模板文档生成器的桌面应用程序(保存照片、将信息写入文档)
我想开发一个 Java 桌面应用程序
。该应用程序将生成有关患者的文字文档
。某些模板中会有一些固定和可变字段、列。
系统将是这样的:我将保留患者信息(这些是变量)会有一些消息,不同模板的问题(固定变量)患者将回答问题并且它们也将被存储。患者回答问题、提供信息后,应用程序将生成表格
(该表格具有固定的对齐方式、边框等)。患者也会提供他们的照片,并将其存储在数据库中。
系统用户将能够打印
它,并且能够搜索
文档、用户等。
我会问你如何开发该应用程序,我的意思是如何保留模板
,将信息写入表单
在正确的位置,组织更好的数据库
,组织照片等。
我也愿意接受其他建议关于开发程序(数据库端、Java桌面应用程序端、更好的GUI建议等)
I want to develop a Java desktop application
. This appliation will generate word documents
about patients. There will be some fixed and variable fields, columns at some templates.
System will be like that: I will keep the patients information(these are variables) There will be some messages, question at different templates(fixed variables) Patients will answer the questions and they will be stored too. After patients answer questions, give their information, appliation will generate form/s
(this forms has fixed alignments, borders etc.) Patients will give their photos too and they will be stored at database.
System users will be able to print
it and will have an ability to search
documents, user, etc..
I will ask you how to develop that application, I mean how to keep templates
, write the information to the form
at correct places, organise a better database
, organise photos etc.
I am open for other advises too about developing program(database side, Java desktop application side, better gui advices etc.)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我真的不明白你的问题与数据库设计有什么关系。如果您将使用桌面上的客户端应用程序创建 Word 文档,则数据可能可以从那里获得(至少在创建 Word 文档期间)。数据也存储在服务器上是不相关的(对于 Word 文档)。
已经有一个关于 Word 和 Java 的问题,因此您可以阅读该问题一些信息。
但是,如果您决定生成 Word(POI,通过 OpenOffice、COM 接口),您可能希望在创建 Word 文件之前将模板、图像和其他数据从服务器获取到客户端计算机(然后将其删除),或者让服务器创建Word 文件。
作为替代方案,我建议您查看 RTF 格式。 Word支持富文本格式,可以有图像,而且更容易处理(Java有一个标准 RTF 编辑器套件 包括在内,我不知道它有多好)。
I don't really see what your question has to do with database design. If you will be creating Word documents using the client application on the desktop the data should probably be available from there (at least during creation of the Word document). That the data is also stored on the server is not relevant (for the Word document).
There is already a question about Word and Java, so you could read that for some information.
If however you decide to generate your Word (POI, via OpenOffice, COM interface) you will probably want to get the template, images and other data from the server to the client computer just before creating the Word file (and delete it afterwards), or let the server create the Word file.
As an alternative I suggest you look at the RTF format. Rich Text Format is supported by Word, can have images, and is more easy to handle (Java has a Standard RTF editor kit included, I don't know how good it is).