I want to add button in my form to print when click
how can i do this???????
Specify further details, what u want to print? etc..
using print dialog and like selvaganapathy said what u want to print...
I want a button when click my form will be printed
I also want the same thing. I have just made a"Clothing Design" for a school assignment, and to get extra marks i need it so it will print out the full page.
Any heeeeeeeeeeeeeeelp pleeeeeeeeeeeeeease!!!!!!!!!!!!!!!!!!!!!
THis will print a label it might help guide you in the rignt direction.
''' at the very top of the form
''' new sub procedure
Private Sub printtext(ByVal sender As Object, ByVal ev As PrintPageEventArgs)
ev.Graphics.DrawString(lblQ2.Text, New Font("arial", 11, FontStyle.Regular), Brushes.Black, 120, 120)
ev.HasMorePages = False
''' button event
Private Sub btnQ2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnQ2.Click
Dim printdoc As New PrintDocument
AddHandler printdoc.PrintPage, AddressOf Me.printtext
Catch ex As Exception
MessageBox.Show("Sorry there is a problem printing", ex.ToString())