Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42298

VS 2008 Ho do I wrap text on a print page?

$
0
0
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?

Viewing all articles
Browse latest Browse all 42298

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>