Procedure TParagraph.MergeCell(KeepMergedColumn:Boolean)

Unit: WPRTEDefs
Class: WPRTEDefs.TParagraph

Parameters

  • KeepMergedColumn:Boolean

Description

Method to merge cells horizontally:
KeepMergedColumn=FALSE: Append the contens of the next cell to this one.
KeepMergedColumn=TRUE: Set the flag paprColMerge in the next cell.
You can merge all cells in a table row "nRow" using code like this: // var aRow : TParagraph; if WPRichText1.MoveToCell(0,nRow,'NAME') then begin aRow:=WPRichText1.TableRow; for x:=0 to aRow.ColCount-2 do aRow.Cols[x].MergeCell(true); end; Not how this code merges the cells in a reverse order, starting on the right side.