Not getting Vertical or Horizontal Merge

I am using Aspose.Words version 11.2

I am trying to parse a table from a .docx document and not able to get values for horizontal or vertical merging (all are zeros).

I also tried this with an html document which had horizontal as well as vertical merging still could not get the values(all are zeros).

If it is not possible in this case, is there a way I can detect vertical merging (I have managed to detect horizontal merge without the getHorizontalMerge() though )

I have attached code and sample files.

Hi Carlton,

Please accept my apologies for late response.

I have not found any issue with horizontal and vertical cell merge while using latest version of Aspose.Words for Java. Please use the latest version of Aspose.Words for Java.

Table wordTable = document.getFirstSection().getBody().getTables().get(0);
for (Row row: wordTable.getRows())
{
    for (Cell cell: row.getCells())
    {
        if (cell.getCellFormat().getVerticalMerge() == CellMerge.FIRST)
        {
            System.out.println("HorizontalMerge" + cell.getCellFormat().getHorizontalMerge());
            System.out.println("VerticalMerge" + cell.getCellFormat().getVerticalMerge());
        }
    }
}

Hope this answers your query. Please let us know if you have any more queries.