Hello,
is there a way to detect auto page breaks in Wptools5?
I'm looking for (listAutoNewPage in line^.state),
which was available in Wptools4.
The codesnipet, sent by richard diamand (FAQ WPTools 5 Upgrade) can only be used to find "storable" information like a manual pagebreak with #12
Code to find manual page breaks:
var
par : TParagraph;
begin
with WPRichText1 do begin
par := FirstPar; // using FirstPar here 'cause it uses wpIsBody, not ActiveFirstPar, which is ActiveText-based
while( par <> nil ) do begin
if( par.IsNewPage ) then begin
// do whatever you want in here
end;
par := par.next;
end;
end; // ( of with WPRichText1 do begin )
end
sincerely
Michael