Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27189

VS 2010 How to break a large string for multipage printing?

$
0
0
Okay, I've set up a program that sends a very large string to print inside a rectangle. The rectangle has a static width, but the height varies according to the length of the text inside the string. The height is determined using e.Graphics.MeasureString. The problem is that I have some strings that are more than one page long. I can adjust the height of the rectangle by changing the .height of my SizeF variable to my maximum printable area, but then lines are being chopped through the middle and I can't figure out how to start on the next page from where the string had left off. The string data is being pulled from a DB, so I can't use StringReader. If someone can point me in the right direction I am sure I can figure it out.

Viewing all articles
Browse latest Browse all 27189

Trending Articles



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