Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi guys,

I have a question and i really wish to find help with.

I need to create a window form application that need to print on a ready made document,
There are any techniques of how can i get the text of each input and put it in this form and they can print the form ?


The other problem is that the form is going to be already printed so i need to make a blank document with the positions of the ready made document i think.

What I have tried:

I have not started well since i am researching on how i can do this document thing. If someone can help me i really appreciate it. Thanks.
Posted
Updated 19-Feb-18 9:35am

1 solution

There are lots of ways, if you have Word then you can use Word automation, see article here: Word Automation using C#: Create a Word Table Programatically[^]
You can also use the Report Viewer control, but sadly this is not installed standard anymore in newer Visual Studio version, it's still possible to download this control via NuGet however.
Getting started with the ReportViewer 2016 control | Microsoft Docs[^]

Of course it's also possible to do everything programmatically in code, see: PrintDocument Class (System.Drawing.Printing)[^]
 
Share this answer
 
v4
Comments
Joe Doe234 19-Feb-18 14:03pm    
i only have the hard copy of what i want.. the easiest way is to ask for soft copy ?
RickZeeland 19-Feb-18 15:01pm    
If you have a scanner, you could scan the form which will make things a lot easier, you could use that as a background image (with transparency) to position the text.

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