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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

changing height/padding of a row/cell does not worl if using "table.ApplyStyle(BuiltinTableStyle.TableList3);"

Thread ID:





127101 Oct 26,2016 08:52 AM UTC Oct 27,2016 10:25 AM UTC ASP.NET MVC 1
Tags: DocIO
Asked On October 26, 2016 08:52 AM UTC

changing  height/paddingof a row/cell does not worl if using "table.ApplyStyle(BuiltinTableStyle.TableList3);" additionally I use " format.IsAutoResized = true;". What to do here ?

Ayswarya Krishna Kumar [Syncfusion]
Replied On October 27, 2016 10:25 AM UTC

Hi Customer,

Thank you for contacting Syncfusion support.

We suspect that you have missed disabling the boolean flag ‘
SamePaddingsAsTable. This flag represents the Microsoft Word’s cell options - “Same as the whole table’. Before to set the cell paddings via cell options it is un check this option. Please refer the below screenshot for more clear understanding.


Please find the below code snippet for accessing the ‘
SamePaddingsAsTable option to set the paddings for the table cell.

//Creates Word document instance 
WordDocument document = new WordDocument(); 
//Appends a section with an empty paragraph 
//Adds the table to the last section 
WTable table = document.LastSection.AddTable() as WTable; 
//Sets the table with 3 rows and 3 columns 
table.ResetCells(3, 3); 
//Applies table built in style - TableList3 
//Applies padding to complete table 
table.TableFormat.Paddings.Left = 10; 
//Disables the MS Word flag 'Same as the whole table' option 
table.Rows[0].Cells[0].CellFormat.SamePaddingsAsTable = false; 
//Applies the padding to the current row via cell 
table.Rows[0].Cells[0].CellFormat.Paddings.Left = 5; 
//Saves the document 
//Closes the document instance 

Note: If you could still reproduce the issue at your end, please provide us the sample that reproduce the issue, along with the Word document you are using, if any? So that we could analyze further and could provide you more appropriate details at the earliest.



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