Hi,
We produce both Word and PDF documents from content defined in HTML. The PDF is generated from the Word document.
From going through the forum it seems that we can use the following (where table is an Aspose.Words.Tables.Table):
table.FirstRow.RowFormat.HeadingFormat = true;
We are setting this property to ‘true’ for all tables within the document with the following bit of code.
// Table headings
Node currentNode = documentBuilder.CurrentParagraph;
while (currentNode != null)
{
currentNode = currentNode.NextSibling;
if (currentNode != null && currentNode.NodeType == NodeType.Table)
{
Aspose.Words.Tables.Table table = currentNode as Aspose.Words.Tables.Table;
if (table != null)
{
// Vertical
table.FirstRow.RowFormat.HeadingFormat = true;
}
}
}
Unfortunately this doesn’t appear to be working for either the rendered Word documents or PDF documents (please refer to the last table in the attachments).
Is there anything else that needs to be done for the use of the HeadingFormat property?
Thanks in advance.