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.
Ed PhillipsPosted Feb 25, 2008, 8:52 AM
Ed PhillipsPosted Feb 16, 2008, 8:05 AM
Actually, I didn't try using the \f. I am using \r\n. Maybe the \f will make a difference.
Thanks.
Ed PhillipsPosted Feb 16, 2008, 8:02 AM
Scott LyslePosted Feb 14, 2008, 9:34 PM
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.