We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Query about merge cell

Hi, http://www.aspose.com/docs/display/wordsnet/Working+with+Merged+Cells the merge function in this.. can u tell me about this line Table parentTable = startCell.ParentRow.ParentTable; what is the Table here? which class it belongs to? also in the same line.. i am getting another issue with ParentRow .. saying "Aspose cell does not contain a definition for parent row"

Hi,

Thanks for your posting and using Aspose APIs.

Actually, the startCell reference belongs to Aspose.Words and not Aspose.Cells. So, we are moving your thread to Aspose.Words forum, Aspose.Words team will look into your issue and answer you asap.

Hi there,

Thanks for your inquiry. Please note that Aspose.Words is quite
different from the Microsoft Word’s Object Model in that it represents
the document as a tree of objects more like an XML DOM tree. If
you worked with any XML DOM library you will find it is easy to
understand and work with Aspose.Words. When you load a Word document
into Aspose.Words, it builds its DOM and all document elements and
formatting are simply loaded into memory. Please read the following
articles for more information on DOM:

http://www.aspose.com/docs/display/wordsnet/Object+Model+Overview
http://www.aspose.com/docs/display/wordsnet/Composition+Diagrams
sugsan:

Hi, http://www.aspose.com/docs/display/wordsnet/Working+with+Merged+Cells the merge function in this… can u tell me about this line Table parentTable = startCell.ParentRow.ParentTable; what is the Table here? which class it belongs to?

The Table belongs to Aspose.Words.Tables.Table class. Please read about Aspose.Words.Tables namespace from here:
http://www.aspose.com/docs/display/wordsnet/Aspose.Words.Tables+namespace
sugsan:

also in the same line… i am getting another issue with ParentRow … saying "Aspose cell does not contain a definition for parent row"

The Cell.ParentRow property returns the parent row of the cell. Please read about members of Cell class from here:
http://www.aspose.com/docs/display/wordsnet/Cell+Members

Could you please share your input document here for testing? I will instigate the issue and provide you more information.