I need to print a paragraph of text onto a document and i need
the text to wrap in an area that could be represented by the bounds
of a rectangle. I know that this is possible but i don't know how to do it.
I have never required this in the past and have always printed the text
onto the document with this:
Dim PrintFont As New Font("Arial",12, FontStyle.Bold, GraphicsUnit.Pixel, Nothing)
e.graphics.DrawString(TxtToPrint,PRFont,Brushes.Black,X,Y)
I know that you can use e.MarginBounds to contain the text to the width of the page
but how do you define a specific boundary on the page?
the text to wrap in an area that could be represented by the bounds
of a rectangle. I know that this is possible but i don't know how to do it.
I have never required this in the past and have always printed the text
onto the document with this:
Dim PrintFont As New Font("Arial",12, FontStyle.Bold, GraphicsUnit.Pixel, Nothing)
e.graphics.DrawString(TxtToPrint,PRFont,Brushes.Black,X,Y)
I know that you can use e.MarginBounds to contain the text to the width of the page
but how do you define a specific boundary on the page?