We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

insert table below other , Horizental Merge of cells and deformation of table.

im trying to fusion a multi table and merge horizontally a some rows in the global table , 
i have an unsatisfied result. 
( i remarque this change just after changing my library , maybe there is a link with this ticket -> https://www.syncfusion.com/forums/150503/wrong-result-of-cell-width-and-height )

why my table is destorted when i delete one column ?

i attached bellow all the sample and code i use for that.


Attachment: fusion_cell_3c1d8af5.zip

3 Replies

MR Manikandan Ravichandran Syncfusion Team January 13, 2020 02:16 PM UTC

Hi AtliDev, 

Thank you contacting Syncfusion.

On analysing further on the given code snippet, you have merged all the cells in the first row of the second table and removed the last column of the overall table. Based on this we have created a sample application with your code snippet to meet your end requirement.

Please find the modified sample from the below link

We have added some modification in the given code snippet. These are,
1. After merging the table cells, we have saved this document as stream.
2. Then, opened this stream as document in the new word document instance.
3. Retrieved the Table from the bookmark content (‘D_Local’)
4. Removed the last column of table and applied autofit table to content formation
5. Finally saved the new document.

Reason for saving the document after merging the table cells:
While saving the document, if the continuous tables are present without any in between paragraph, we consider these tables are same and we merged the both tables as per the Microsoft Word application behaviour. After that, when retrieving the table from the bookmark content, we get single table. So, we can easily remove the last column from the table.

Reason for setting autofit table to content formation:
While setting AutoFit table with respect to content, the table cells are automatically resized based on the content in each cell to avoid deformation of the table

Please let us know if you have any other questions.

Thanks and Regards,
Manikandan Ravichandran 

AT AtliDev January 15, 2020 01:00 PM UTC

In my case i can't use this method, cause i'm working with different table and a document contain lot of page, ( is not good to save and use the doc every insert of table )
i think the problem is link to the size width cell/column : https://www.syncfusion.com/forums/150503/wrong-result-of-cell-width-and-height
cause when i generate the document with old librairy (  is work correctly 

SB Suriya Balamurugan Syncfusion Team January 20, 2020 01:04 PM UTC

Hi AtliDev,

Thank you for update.

As promised earlier in the Forum #
150503, We will provide the patch for the reported “Cell width is not preserved properly while opening the DOC format word document” issue on 22nd January 2020.

Kindly ensure whether the reported difference in table in this forum is resolved in that patch and let us know the details.

Suriya Balamurugan.

Live Chat Icon For mobile
Up arrow icon