Keeping Paragraphs Together Near Page Breaks

General TRichView support forum. Please post your questions here
Post Reply
JLuckey
Posts: 12
Joined: Thu Feb 23, 2006 12:22 am

Keeping Paragraphs Together Near Page Breaks

Post 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
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Consider using "keep lines together" and "keep with next" options of paragraph, see TParaInfo.Options
Post Reply