Generating word document with ordered numbering

Generating word document with ordered numbering

Hello,

Please help me with this problem:
I have a docx template that I am trying to populate from c# code in a Windows Application.

Here is the template format I have. 

1. %CasesListDescription% - Paragraph 1 which will be dynamically generated. (This is a place holder so I can replace the text programmatically.
2. Paragraph 2
3. Paragraph 3
4. Paragraph 4
and so on

Issue # 1: I am dynamically generating the 1st paragraph. 
document.ReplaceText("%CasesListDescription%", strPmtCaseText);

But since this dynamically generated, we could be having 3 paragraphs also. so now, the document generated can become 

1. Paragraph 1
2. Paragraph 2 ( which was dynamically generated)
3. Paragraph 3 ( which was dynamically generated)
4. Paragraph 2
5. Paragraph 3
6. Paragraph 4
and so on

when i generate the word document, it is not generating like this. It is generating as,

1. Paragraph 1
     Paragraph 2 ( which was dynamically generated)
    Paragraph 3 ( which was dynamically generated)
2. Paragraph 2
3. Paragraph 3
4. Paragraph 4
and so on

Can you help me in getting the ordered numbers generated correctly?