V
VB Programmer
I have a multiline text box with a scroll bar. I want to print out the
ENTIRE contents of the text box, but it's only printing what's visible.
Here's my PrintPage code:
Private Sub PrintDocument_PrintPage(ByVal sender As System.Object, ByVal
e As System.Drawing.Printing.PrintPageEventArgs) Handles
PrintDocument.PrintPage
Try
e.Graphics.DrawString(txtDisplay.Text, New
Font(txtDisplay.Font.Name, txtDisplay.Font.Size,
FontStyle.Regular),Brushes.Black, 150, 125)
Catch ex As Exception
HandleError(ex, "PrintDocument_PrintPage")
End Try
End Sub
Any ideas how to do this?
ENTIRE contents of the text box, but it's only printing what's visible.
Here's my PrintPage code:
Private Sub PrintDocument_PrintPage(ByVal sender As System.Object, ByVal
e As System.Drawing.Printing.PrintPageEventArgs) Handles
PrintDocument.PrintPage
Try
e.Graphics.DrawString(txtDisplay.Text, New
Font(txtDisplay.Font.Name, txtDisplay.Font.Size,
FontStyle.Regular),Brushes.Black, 150, 125)
Catch ex As Exception
HandleError(ex, "PrintDocument_PrintPage")
End Try
End Sub
Any ideas how to do this?