WPCubed Product Support

Countlines

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

#1 ♥ 0
2.8k Views 2 users read 1 min
support

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

#2 ♥ 0
This category is archived. No new posts are possible.