How to identify merged column and row in word table?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I need to read all the text from a table. By using below I can read the content from table. https://1drv.ms/w/s!Ah-Jh2Ok5SuHel9ZpB-V5DZ66DM here I uploaded a dummy Docx file having tables. foreach ( Word . Row row in tb . Rows ) { foreach ( Word . Cell cell in row . Cells ) { string cellText = "" ; if ( cell . Range != null ) { cellText = cell . Range . Text . ToString (). Trim (). Replace ( "\r\a" , "" ); } } } But for below 3 cases I face problem. Case 1: Showing in Table 1, two column cells were merged. By using above code I am