winforms数据到文档 [英] winforms data in to document

查看:55
本文介绍了winforms数据到文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



如何将保存的winform'的控制数据发布到类似模板的文档中。



例如,我有一个像患者详细信息表单的窗体。我在这个表单中输入了一些数据,然后我想生成一个字母,其中有一些来自windows表格的数据,我怎么能得到它?

Hi All,

How can I post saved winform''s controls data in to document like template.

For example i have a windows form like patient details form. I entered some data into this form then i want to generate one letter which is having some data from windows form how can i get it?

推荐答案

创建一个文档模板某种标记系统,用于标识变量字段,并将其保存在文件中。当您获得患者的详细信息时,请阅读模板,将所有标记点替换为实际细节,并将其保存到新文件中,以备打印。
Create a document template with some sort of marker system to identify the variable fields, and save it in a file. The when you have the details of your patient, read in the template, replace all the marker points with the actual details, and save it to a new file, ready to be printed.


这篇关于winforms数据到文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆