trichview.support
Page break before table |
Author |
Message |
Martin Larsen |
Posted: 05/12/2003 18:10:30 Hi Sergey, In a RV document (not RVEdit) I need to make sure that a table starts on a new page. I have tried both of these solution: 1. Table.PageBreakBefore := True; RV.format; 2. function GetLastTableItemNo(RV: TRichView): Integer; var i: Integer; begin Result := -1; for i := RV.ItemCount-1 downto 0 do if RV.GetItemStyle(i)=rvsTable then begin Result := i; exit; end; end; RV.PageBreaksBeforeItems[GetLastTableItemNo(RV)]; RV.format; None of these works! What do I do wrong? Martin |
Powered by ABC Amber Outlook Express Converter