I have an application that accepts around 20 fields of data (string/int) from the user. Then allows the user to edit a dataset in a datagrid, and sort this dataset to display the updated dataset.
I now need to take the fields of user input (textboxes) and the applicable dataset (dataset or datatable), and print them. After the document is printed, I need to be able to save this information in some accessible format. This saved document needs to be able to be located by a primary key and printed/viewed again in the future.
I need to be able to organize this data and add a logo to it. My current thought is to either use a richtextbox or a listbox for the printable page, and save the file as a text file from this box. This seems like it works logically, but I'm not sure it's the correct way to do it.
In essence my plan is to use the code I have already; then add a logo to the top of the box, add the user input fields to the box, then copy my datatable and add each datarow to the box. I then wish to be able to print this document and store it in a form that can be located and converted back to the box it was in before.
I have found some good printing tutorials, and am confident that I can print from a textbox, listbox, rtextbox. I also feel like I will be successfully able to print my box to a text file. Areas where I'm hazy on are.
1) what should I use for my printable region? Data will be an image, textbox data, and an array of datarows.
2) should I use a text file, or do I need to use xml or some other sort of file I'm not thinking of? Any help with the event of converting to a file type, then converting back to the printable format.
3) any starting point on how to combine these two events and make them run efficiently. Also, any heads up I should have when starting to print my first documents.