Question: PrintDocument_PrintPage - only does what's visible

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,072
Latest member
trafficcone

Latest Threads

Top