I tried using to remove Page break:
Code: Select all
While reText.SearchText(#12, SearchOptions) do
reText.InsertText('');
(reText is a TRichViewEdit)
Code: Select all
While reText.SearchText(#12, SearchOptions) do
reText.InsertText('');
Code: Select all
for i := 0 to reText.ItemCount-1 do
reText.PageBreaksBeforeItems[i] := False;
Code: Select all
for i := 0 to reText.ItemCount-1 do
if reText.PageBreaksBeforeItems[i] then begin
reText.SetSelectionBounds(i, reText.GetOffsBeforeItem(i),
i, reText.GetOffsBeforeItem(i));
reText.RemoveCurrentPageBreak;
end;