• When i use countlines on a wpedit that is displayed on screen, it works fine.

    When i use it on a wpedit generated in Code (without form), it does return 0 because all paragraphs return 0. I can't analyse it further, because i dont have the source.

    What is the reason and what is the solution?

    Chuck

    • Offizieller Beitrag

    Hi,

    If the text is not formatted CountLines does not work.

    Temporary editos need to besed with

    TWPCustomRTFEdit.Create Dynamic

    and

    ReformatAll needs to be called when you need to print it or retriev number of pages, lines etc.

    Julian