How to extract paragraph and table from document using C#

Hi Team,

I am facing some issues while extracting Word document paragraph and Table separately. NodeType.TABLE is not working properly. Some pages, table data also coming under paragraphs. So both value get collides. Also when i am extracting paragraph, the sub-section numbers are not coming.The main section numbers only coming. Please find the attached sample document for your referencesample.zip (14.6 KB)

From this attachment,

  1. 25.docx - Both paragraph and table data are getting collide.
  2. 34.docx - Sub-section numbers are not coming while extracting paragraphs

Thanks

@HAREEM_HCL_COM

To ensure a timely and accurate response, please attach the following resources here for testing:

  • Please attach the output Word file that shows the undesired behavior.
  • Please attach the expected output Word file that shows the desired behavior.
  • Please create a standalone console application ( source code without compilation errors ) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.