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

Using "BuiltinTableStyle" does not allow custom style ?!

Thread ID:





127070 Oct 24,2016 01:25 PM UTC Oct 26,2016 04:06 AM UTC ASP.NET MVC 3
Tags: DocIO
Asked On October 24, 2016 01:25 PM UTC

Code snippet:
 //Does not work
 table[y , x].CellFormat.Borders.Top.BorderType = BorderStyle.None;
 //Does work.
table[y, zellenCounter].CellFormat.Borders.Top.LineWidth = 1.5f;

Sethumanikkam Yogendran [Syncfusion]
Replied On October 25, 2016 08:30 AM UTC

Hi Customer,

Thank you for contacting Syncfusion support.

On further analyzing with the given code snippet, you have used None border type which can used to avoid effect on border type. It gives No border to particular border type of Cell and value for it inherits from its parent.

If you want to clear any type of border for the particular cell, then you can use as “Cleared” from “BorderStyle” which used to set clear particular border.

Please find the below highlighted code snippet which illustrates the same. Please let us know if it helps you.
//Creates an instance of WordDocument Instance (Empty Word Document)
WordDocument wordDocument = new WordDocument();
//Adds a section into Word document
WSection wSection = wordDocument.AddSection() as WSection;
//Adds a new table into Word document
WTable wTable = wordDocument.LastSection.AddTable() as WTable;
//Specifies the total number of rows & columns
wTable.ResetCells(3, 3);
//Applies "TableList3" built-in style to table

//Does not work case used with Cleared to work.
wTable[0, 0].CellFormat.Borders.Top.BorderType = BorderStyle.Cleared;

wTable[0, 1].CellFormat.Borders.Bottom.BorderType = BorderStyle.Cleared;
wTable[1, 1].CellFormat.Borders.Top.BorderType = BorderStyle.Cleared;

wTable[1, 2].CellFormat.Borders.Bottom.BorderType = BorderStyle.Cleared;
wTable[2, 2].CellFormat.Borders.Top.BorderType = BorderStyle.Cleared;

Please refer the following link to know more about formatting with table row and cell.

If we misunderstood your requirement, kindly update us requirement with clear description. Thereby we will analyze further on the mentioned requirement and update you with appropriate solution.

Please let us know if you have any other questions.


Replied On October 25, 2016 11:01 AM UTC

tanks you, this helped

Sethumanikkam Yogendran [Syncfusion]
Replied On October 26, 2016 04:06 AM UTC

Hi Customer,

Thank you for your update.

we are glad that our solution has resolved your issue. Please get back to us if you need any other assistance.
We will be happy to assist you as always.



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