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

php - Android app custom user registration and login with cookie using facebook sdk -

ruby on rails - Devise Logout Error in RoR -

c# - Create a Notification Object (Email or Page) At Run Time -- Dependency Injection or Factory -