As mentioned in the title I wanted to generate a data report and found this bit of code on microsoft page.
Hoping Im correct,
Private Sub printDocument1_PrintPage(ByVal sender As Object, ByVal e As System.Drawing.Printing.PrintPageEventArgs)
Dim f As Font = New Font("Vanada", 12)
Dim br As SolidBrush = New SolidBrush(Color.Black)
Dim p As Pen = New Pen(Color.Black)
e.Graphics.DrawString("This is a text.", f, br, 50, 50)
e.Graphics.DrawRectangle(p, 50, 100, 300, 150)
[ Is this the place to Bind the elements from textbox on to the print page? ]
[ If so how is it done? ]
First I search an employee and the textboxes are populated. Then when I hit the print button, the labels and the data in the textboxes should appear on the print page.
Guess I have specified my problem correctly.
Thank You :)