Page 1 of 1

Keeping Paragraphs Together Near Page Breaks

Posted: Tue Mar 13, 2007 9:54 pm
by JLuckey
I have a report which prints in a 2 column format. It is based closely on one of the examples that comes w/ TRichView. (It uses TRVReportHelper and its method FormatNextPage.)

It is made up of many small paragraphs as many as 6-8 paragraphs per column on the printed page. Sometimes there are paragraphs which must remain together over a page/column break.

Which components and events control page breaking and how do I prevent or cause a page break programatically?


Thanks

Posted: Wed Mar 14, 2007 7:46 am
by Sergey Tkachenko
Consider using "keep lines together" and "keep with next" options of paragraph, see TParaInfo.Options