Keep fixed paragraph Aspose.Word

.style2 { width: 567px; height: 188px; } .style3 { width: 567px; height: 22px; } .style4 { height: 23px; } .style5 { height: 23px; width: 31px; } .style6 { width: 31px; } .style7 { width: 31px; height: 25px; } .style8 { height: 25px; }
<form id="form1" runat="server">
<div>

    Hi support,<br>
    <br>
    I am testing the evaluation version of Aspose.words<br>
    <br>
    I wonder which one is the way to do this:<br>
    <br>
    I have a template 
    in .docx,  this template has a spot to create table on the fly, the 
    table can have one or many rows, the table grows dynamically depending on the 
    data on the database. The template has a footer: "Qua make it easy".<br>
    <br>Next to the table,  I have some text, inside it, there is a word that has an 
    asterisk "<u><b> Payments*</b></u> ", and, at the end of the page,  there is an 
    explanation about this referenced word " <u><b>*Payments in full only</b></u>", 
    these words are formatted in  bold an underlined.<br>
    <br>
    Tempalte in docx:<br>
    <br>
    Page one<br>
    <table height="384" width="188" border="1">
        <tbody><tr>
            <td class="style2">
                <br>
                [Table on the fly, no rows]<br>
                <br>
                Qua company will            <br>
                receive the <u><b>payments*</b></u>       
    <br>
                described above.               <br>
                <br>
                According to the past       <br>
                meeting, all the payments   <br>
                will be added to the main   <br>
                account.       <br>
                <br>
                <br>
                <br>
                <br>
                <br>
                <u><b>*Payments in full only </b></u></td>
        </tr>
        <tr>
            <td class="style3">
                <font size="1"><center>Qua make it easy</center></font></td>
        </tr>
    </tbody></table>
    <br>
    <br>
    Then, working with the template, after adding some dynamic content to the table 
    by programming, the payment description go 
    to the next page.<br>
    <br>
    Page one<table height="393" width="187" border="1">
        <tbody><tr>
            <td class="style2">
                <br>
                <table style="width: 73%;" align="center" border="1">
                    <tbody><tr>
                        <td class="style5">
                            1</td>
                        <td class="style4">
                            $150</td>
                    </tr>
                    <tr>
                        <td class="style6">
                            2</td>
                        <td>
                            $200</td>
                    </tr>
                    <tr>
                        <td class="style6">
                            3</td>
                        <td>
                            $90</td>
                    </tr>
                </tbody></table>
                <br>
                <br>
                Qua company  will            <br>
                receive the <u><b>payments*</b></u>       
    <br>
                described above.               <br>
                <br>
                According to the past       <br>
                meeting, all the payments   <br>
                will be added to the main   <br>
                account.       <br>
                <br>
                <br>
                </td>
        </tr>
        <tr>
            <td class="style3">
                <font size="1"><center>Qua make it easy</center></font></td>
        </tr>
    </tbody></table>
    <br>
    Page two<table height="373" width="189" border="1">
        <tbody><tr>
            <td class="style2">
                <u><b>*Payments in full only <br>
                <br>
                <br>
                <br>
                <br>
                <br>
                <br>
                <br>
                <br>
                <br>
                <br>
                <br>
                <br>
                <br>
                <br>
                <br>
                </b></u>
                </td>
        </tr>
        <tr>
            <td class="style3">
                <font size="1"><center>Qua make it easy</center></font></td>
        </tr>
    </tbody></table>
    <br>
    <br>
    I wonder how can I keep the word <b><u>payments*</u> </b> and its explanation <b>
    <u>*Payments in full only</u>  </b> on the same page, if the table grows, I need 
    to have something like this:<br>
    <br>
    Page one<table height="330" width="184" border="1">
        <tbody><tr>
            <td class="style2">
                <br>
                <table style="width: 73%;" align="center" border="1">
                    <tbody><tr>
                        <td class="style5">
                            1</td>
                        <td class="style4">
                            $150</td>
                    </tr>
                    <tr>
                        <td class="style6">
                            2</td>
                        <td>
                            $200</td>
                    </tr>
                    <tr>
                        <td class="style6">
                            3</td>
                        <td>
                            $90</td>
                    </tr>
                </tbody></table>
                <br>
                Qua company  will            <br>
                receive the <u><b>payments*</b></u>       
    <br>
                described above.               <br>
                <br>
                According to the past      
                <br>
                <br>
                <u><b>*Payments in full only </b></u></td>
        </tr>
        <tr>
            <td class="style3">
                <font size="1"><center>Qua make it easy</center></font></td>
        </tr>
    </tbody></table>
    <br>
    Page two<br>
    <table height="314" width="186" border="1">
        <tbody><tr>
            <td class="style2">
                meeting, all the payments   <br>
                will be added to the main   <br>
                account.       <br>
                <br>
                <br>
                <br>
                <br>
                <br>
                <br>
                <br>
                <br>
                <br>
                <br>                   
                </td>
        </tr>
        <tr>
            <td class="style3">
                <font size="1"><center>Qua make it easy</center></font></td>
        </tr>
    </tbody></table>
    <br>
    <br>
    And then, of course, if the table grows more, the document should be something like 
    this:<br>
    <br>
    Page one<br>
    <table height="367" width="185" border="1">
        <tbody><tr>
            <td class="style2">
                <br>
                <br>
                <table style="width: 73%;" align="center" border="1">
                    <tbody><tr>
                        <td class="style5">
                            1</td>
                        <td class="style4">
                            $150</td>
                    </tr>
                    <tr>
                        <td class="style7">
                            2</td>
                        <td class="style8">
                            $200</td>
                    </tr>
                    <tr>
                        <td class="style6">
                            3</td>
                        <td>
                            $90</td>
                    </tr>
                    <tr>
                        <td>4</td>
                        <td>$130</td>
                    </tr>
                    <tr>
                        <td>5</td>
                        <td>$102</td>
                    </tr>
                    <tr>
                        <td>6</td>
                        <td>$114</td>
                    </tr>
                    <tr>
                        <td>7</td>
                        <td>$140</td>
                    </tr>
                    <tr>
                        <td>8</td>
                        <td>$140</td>
                    </tr>

                     <tr>
                        <td>9</td>
                        <td>$140</td>
                    </tr>



                </tbody></table>
                <br>
                <br>
                </td>
        </tr>
        <tr>
            <td class="style3">
                <font size="1"><center>Qua make it easy</center></font></td>
        </tr>
    </tbody></table>
    <br>
    Page two<br>
    <table height="353" width="186" border="1">
        <tbody><tr>
            <td class="style2">
                Qua company  will            <br>
                receive the <u><b>payments*</b></u>       
    <br>
                described above.               <br>
                <br>
                According to the past       <br>
                meeting, all the payments   <br>
                will be added to the main   <br>
                account.       <br>
                <br>
                <br>
                <br>
                <br>
                <br>
                <br>
                <u><b>*Payments in full only </b></u></td>
        </tr>
        <tr>
            <td class="style3">
                <font size="1"><center>Qua make it easy</center></font></td>
        </tr>
    </tbody></table>
    <br>
    <br>
    In a nutshell: how can I keep tied the words <u><b>"*payments*" </b></u>and <u><b>
    "*Payments in full only"</b></u> on the same page all the time?<br><br>The phrase  <u><b>"*Payments in full only" </b></u>should always be on the bottom of the page<br>
    <br>
    <br>
    Thanks,<br>
    <br>
    Aben<br>
    <br>
    <br>
    <br>

</div>
</form>
Hi Aben,

Thanks for your inquiry. In your case, we suggest you following solution:

1) Please find the text "Payments*" and move the cursor to it.
2) Insert the footnote using DocumentBuilder.InsertFootnote method with text "*Payments in full only".

Hope this helps you. Please let us know if you have any more queries.

The solution works, thanks. I’ll keep testing the library.

I appreciate your help!!

Hi Aben,

Thanks for your feedback. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.