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.
sincerely
Michael
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.
sincerely
Michael
Michael,
As with all my responses here, I'm issuing a blanket disclaimer: Until Julian gives the _CORRECT_ answer, this may well not be the best way, or even the answer to your question, but feel free to give it a try!
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
Alles anzeigen
I hope this is of some help to you.
Regards,
richard diamond
Richard,
thanks for the quick response.
Unfortunately, your code only find manual page breaks with #12.
I'm interested in the generated page breaks,
if there is no place left for the text/paragraph on current page.
My code, based on Wptools 4.09, contains a lot of dynamical created
text. I need this information for long tables on several pages with
repeated header lines and header rows on each page as well as
calculating paragraphs, which have to keep together or split it logically.
I assume, your WPAT_ParKeepN isn't flexible enough.
Regards,
Michael Ullmann