Aspose Tables

I am trying to remove space between tables. I have attached doc file which shows what it prints now and on second page what i need to achieve. i have use clone table to print multiple tables and then delete top 3 rows. The last step is to merge in the parent table by removing paragraph.
Can you provide assistance on it?
Thank you

Hi there,

Thanks for your inquiry. Please remove empty paragraph between tables using following code example to achieve your requirements. Hope this helps you.

Document doc = new Document(MyDir + "in.docx");
foreach (Table table in doc.GetChildNodes(NodeType.Table, true))
{
    if (table.NextSibling != null && table.NextSibling.NextSibling != null)
        if (table.NextSibling.NodeType == NodeType.Paragraph && table.NextSibling.NextSibling.NodeType == NodeType.Table)
        {
            table.PreferredWidth = PreferredWidth.FromPercent(100);
            table.NextSibling.Remove();
        }
}
doc.Save(MyDir + "Out.docx");