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.
↧