Code: Select all
//ATable: TAXWTable, TableRow: TAXWTableRow
TableRow := ATable.Rows.Add;
TableRow.Assign(ATable[0], False); //Font of first cell of first row is 'Times New Roman' (Also tried AAssignText True)
TableRow.Cells[0].Paras.PlainText := 'Sample Text'; //Font of cell is 'Arial'
Code: Select all
chpx := TAXWCHPX.Create(nil);
chpx.FontName := 'Times New Roman';
TableRow.Cells[0].Paras.FormatAll(chpx);
How do I retain the formatting of the table from the template?