counting paragraph

General TRichView support forum. Please post your questions here
Post Reply
cychia
Posts: 104
Joined: Mon Jan 16, 2006 1:52 am

counting paragraph

Post by cychia »

I would like to know the total paragraph in my rv editor content, only those para with content, either picture, or text will be counted. How can I do that?
Sergey Tkachenko
Site Admin
Posts: 17555
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Which paragraphs do you want to ignore, containing a empty text? What if this paragraph has a bullet or numbering?
How do you want to count tables?
cychia
Posts: 104
Joined: Mon Jan 16, 2006 1:52 am

Post by cychia »

1. follow the ms word way, in which paragraph with bullet, numbering and text will only be counted as 1. picture, table etc not.

2. for table, the paragraph count is depended on the number of valid paragraph (rule 1 applied) in each cell. say if there are 2 cell with 2 para each, total para is 4
Post Reply