hello.. I'm a beginner in vb .net.
I'm developing a simple form and I need to print out the values entered by the user into text boxes.. but I'm really lost and I don't know how to do it.. can anyone help me plz?
print out where? on printer, console screen, messagebox???
If you are talking about printing on papper you can use PrintDocument in vs.net but if it's something more complicated you must create report (use cristal reports or some other component).
thanx ManicCW for ur reply..
I need to print out on a printer..
I tried to use the printDocument without success so if u can send me simple code how to use it to print the text of the textBoxes in a format that I specify.
If I want to use the crystal report.. how can I access the controls of the report from the main form to fill them with the text I want.
I'll be thankful for any reply.
And for crystal I can't say much because I don't use crystal reports but I think you should not access form's elements but instead you should fill dataset with data and then bind report with that dataset.
But if you want to access data directly from the textbox then declare textbox (and form) as Public and then you should be able to access its properties.
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.