Hi @alexey.noskov,
I have a requirement that I need to do repeat header rows for each table in the document. but for the first row have done the code but I have to take the first two rows of the table and do the repeat header for each table. will you help me …this is the code I have attached screen shoot, document, and highlighted which two rows I need to repeat
doc = new Document(rObj.DestFilePath);
LayoutCollector layout = new LayoutCollector(doc);
NodeCollection table = doc.GetChildNodes(NodeType.Table, true);
foreach (Table tab in table)
{
Row Rw1 = tab.FirstRow;
Row Rw2 = tab.LastRow;
if (layout.GetStartPageIndex(Rw1) != layout.GetStartPageIndex(Rw2))
{
if (tab.FirstRow.RowFormat.HeadingFormat == false)
{
tab.FirstRow.RowFormat.HeadingFormat = true;
IsFixed = true;
}
}
}
header 2.PNG (10.7 KB)
Output_Source_3.2.S.4.4 Batch-analyses (ZHOPL).docx (46.0 KB)
how can I repeat the first two rows in a table? help me with this issue