Hi
Hi Manish,
LayoutCollector layout = new LayoutCollector(doc);
int pageCount = doc.PageCount;
NodeCollection nodes = doc.GetChildNodes(NodeType.Any, true);
Node lastNode = nodes[nodes.Count - 1];
Node currentNode = lastNode;
bool isRemoving = true;
while (currentNode != null && isRemoving)
{
if (layout.GetEndPageIndex(currentNode) == (pageCount - 1))
isRemoving = false;
Node prevNode = currentNode.PreviousPreOrder(currentNode.Document);
currentNode.Remove();
currentNode = prevNode;
}
doc.Save(MyDir + @"17.1.0.docx");
Hello
Aboove code does not work for us as we have Table Borders since the Rows are generated Dynamically . WE cannot use Page Borders.
Please check our issue and sample code at
Second Page Generate After Merge the data using Aspose Word
Also for your reference we have sent the Standalone Application with this issue also in below ticket . Please check it :
Footer on only Last Page