I have a word doc with a single table in it that I copy and then add rows. At the end of the code I merge the table's first row to center the title. When I do this in 11.5 the cell is only as wide as the first column not the entire span of all the merged columns. I even tried your MergeCells() method in the documentation and got the same result. Here is my code for merging a row's cells. I have also attachment my word file that I start with and the resulting word file.
Thanks for any help or fix.
Bryan
public void MergeRow(Aspose.Words.Tables.Row poRow, int iStart, int iCols) { if (Convert.ToBoolean(ConfigurationManager.AppSettings["TableRowTitleMerged"])) { try //merge top and bottom with number of columns { int count = 0; foreach (Aspose.Words.Tables.Cell cell in poRow) { if (count == iStart) { cell.CellFormat.HorizontalMerge = Aspose.Words.Tables.CellMerge.First;<span style="color: red;">break</span>; } <span style="color: red;">if</span> (count > iStart && count < (iStart + iCols)) { cell.CellFormat.HorizontalMerge = Aspose.Words.Tables.<span style="color: rgb(43, 145, 175);">CellMerge</span>.Previous; } count++; } } <span style="color: red;">catch</span> (<span style="color: magenta;">Exception</span> ee) { System.Diagnostics.<span style="color: magenta;">Trace</span>.WriteLine(ee.Message); System.Diagnostics.<span style="color: magenta;">Trace</span>.WriteLine(ee.StackTrace); } } }v</pre>