Im pretty new to VB programming and was wondering if there is a simple way of printing the current form.
I have writtien a simple application that a user keys info into as they are taking a telephone call. The app then works out via the answers entered if the caller can be accepted as a customer.
If all is ok, I need to print the form off to pass it to another department. The data does not need to be kept after this point so a print out would be sufficient.
Any idea's as to how to print the form
Many Thanks.

Printing a form
Adam M
I am having a similar problem. I have a form that needs to be printed exactly as it appears on screen. It needs to have a print dialog that any user can understand just like any other windows app ever made for an end user. I am looking to print a page similarly to the way you would print a web page.
Although I dont have alot of experiance with VB 2005, my applications are doing everying I want with the exception of printing. I have invested counless hours researching on the web and looking for books on the subject with no real result.
So, if it isn't trivial, then why not point us in that direction instead of "printing text in windows forms".
Hope were not chasing rainbows.
thanks
matand
shoagMSFT shows the best example of printing - presumably the information on the form is more important than the gray form. You will DrawString() to the printer object for each textbox contents you want to print. It gives you real nice control over the printing process.
One thing I'd recommend (it makes debugging and fine tuning a LOT easier) is to obtain a PDF Printer Driver, so that you aren't spewing paper everywhere from your printer - you just make PDF documents.
gib88
If we ever get a FAQ thing worked out for this forum, please add
this link to 'how to print a form, the beginners way.'
http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=406862&SiteID=1
Patc4
If you are talking about printing a graphical image of the form as seen on screen, it isn't trivial. You can, however, print the contents of the page using a PrintDocument component as shown in the topic "How to: Print Text in Windows Forms":
http://msdn2.microsoft.com/en-us/library/cwbe712d(en-US,VS.80).aspx
Hope this helps,
Steve Hoag
Visual Basic Express