I want to find how to print a windows form. I have a invoice program and and have a print button called print form and want to print the windows form that im on?
Do you really want to print the form or do you actually want to print a representation of the data in the form? Think about it because the former is rarely the better option. Do you really want TextBoxes and Buttons and colours printed, or do you just want text and lines?
In that case, you need to create a PrintDocument, call its Print method and handle its PrintPage event, then draw whatever you want printed using GDI+. This should give you the basics:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.