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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

150551 Jan 10,2020 04:57 PM UTC Jan 20,2020 01:04 PM UTC WinForms 3
loading
Tags: DocIO
AtliDev
Asked On January 10, 2020 04:57 PM UTC

hi, 
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.

Thanks 


Attachment: fusion_cell_3c1d8af5.zip

Manikandan Ravichandran [Syncfusion]
Replied On 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
https://www.syncfusion.com/downloads/support/forum/150551/ze/GenerateWord-2093121320

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 


AtliDev
Replied On January 15, 2020 01:00 PM UTC

hi, 
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 (17.3.0.14)  is work correctly 
thanks.

Suriya Balamurugan [Syncfusion]
Replied On 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.

Regards,
Suriya Balamurugan.
 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon