Hi,
I have been looking for a way to control page breaks when printing Textbox.Text. I am generating and formatting a short multi-page report and displaying it in a multi-line textbox control. When I print the textbox, I want to be able to set page breaks on the printer as needed. Injecting a form feed character in the text doesn't do it. I haven't been able to find any help on Google yet. Can someone here help me? Thanks.

Scott LysleRank #49 · 31K reputationPosted Feb 14, 2008, 4:34 PM EST
Well, you are right, the formfeed character is ascii character 12. I don't think it would make a difference but if you are using Visual Basic, you might try injecting ControlChars.FormFeed, or if it is C#, you might try \f. Again, this likely won't matter since both end up being ascii character 12.
Ed Phillips7 reputationPosted Feb 16, 2008, 3:02 AM EST
Ed Phillips7 reputationPosted Feb 16, 2008, 3:05 AM EST
Actually, I didn't try using the \f. I am using \r\n. Maybe the \f will make a difference.
Thanks.
Ed Phillips7 reputationPosted Feb 25, 2008, 3:52 AM EST