i have taken one text field and want coding to print text wrintten in text field on button
Dheerajpro
0
Newbie Poster
Recommended Answers
Jump to PostDrag a printdocument to the form and add this.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click PrintDocument1.Print() End Sub Private Sub PrintDocument1_PrintPage(ByVal sender As Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage e.Graphics.DrawString(TextBox1.Text, Me.Font, Brushes.Black, e.MarginBounds.Location) End Sub
You have to write your …
All 4 Replies
kvprajapati
1,826
Posting Genius
Team Colleague
Dheerajpro
0
Newbie Poster
Unhnd_Exception
kvprajapati
commented:
Solved :)
+11
Dheerajpro
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.