Problem with combined cells

  • I try to merge a TWPRichText document, with 2 tables in it, like this :

    Code
    <<Table1>><<Table2>>

    , where <<Table1>> and <<Table2>> are MergeFields.

    There are combined cells in tables. I create them like that :

    Code
    TParagraph* cell = doc->ActivePar()->GetCell(0,0);
    doc->SelectCell(cell, true);
    
    
    TParagraph* cell2 = doc->ActivePar()->GetCell(0,1);
    doc->SelectCell(cell2, true);
    
    
    doc->CombineCells();


    But when the first table is merge, the merging operation stops.
    So the rest of the document is not merge.
    If I remove all the combined cells, the document merges fine.

    Is there a reason to that?
    Does another way to combine two cells exist?