Click here to Skip to main content
15,900,725 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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?
Posted
Updated 13-Dec-12 22:57pm
v4
Comments
[no name] 14-Dec-12 1:02am    
Elaborate your question...
rajugknr 14-Dec-12 4:55am    
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?

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900