Beiträge von Michael Ullmann

    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

    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