c# - How to find the count/number of paragraphs in the table (having merged cell)? -



c# - How to find the count/number of paragraphs in the table (having merged cell)? -

how find count/number of paragraphs in table (having merged cell)? how can current paragraph number in word document.

below code splitting cell based on paragraphs. final value not matching right paragraph value.

for (int k = 1; k < range.cells.count; k++) { if (range.cells[k].range.text.trimend(exclusions).tostring() != "") { string[] temp = range.cells[k].range.text.split('\r'); int tempcnt = temp.length - 1; j = j + tempcnt; } }

c# .net

Comments

Popular posts from this blog

ruby on rails - Devise Logout Error in RoR -

model view controller - MVC Rails Planning -

php - Working with pretty urls on apache and fastcgi after hhvm installation -