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

How can I customize DocIO TableStyles?

Thread ID:





141618 Dec 20,2018 05:20 PM UTC Dec 24,2018 04:58 PM UTC ASP.NET MVC - EJ 2 3
Tags: DocIO
Adrian Grigore
Asked On December 20, 2018 05:22 PM UTC

I need to use some table styling features likeIWTable.ApplyStyleForFirstColumn andIWTable.ApplyStyleForBandedRows, but with my own color scheme and font settings. How can I do this? I searched for a way to supply my own IWTableStyle, but could not find anything.
Thanks for your help,

P.S.: I misselected the tag for this thread. My question refers of course to DocIO WordDocument generation, not to the PDFViewer.

Karthikeyan Chandrasekar [Syncfusion]
Replied On December 21, 2018 07:19 AM UTC

Hi Adrian, 
Currently DocIO doesn’t exposed API to apply conditional formatting for the table. We have already logged this as a feature request in our database. We don’t have any immediate plans to implement this feature. At the planning stage for every release cycle, we review all open features.  We will let you know when this feature is implemented. 

Adrian Grigore
Replied On December 21, 2018 09:11 AM UTC

Hi Karthikeyan,

thanks for your reply. 

So, in this case, what are my options for styling a bunch of tables in a long document in my own corporate color scheme? 

The only way I have found so far is to set the style of each cell or row explicitly, but the way I understand it that would duplicate styling information and overly bloat the document. 

In other words: It is possible to add my own paragraph style to the document and apply the same style to multiple paragraphs just by referencing the name. Isn't there something similar available for tables?



Dilli Babu Nandha Gopal [Syncfusion]
Replied On December 24, 2018 04:58 PM UTC

Hi Adrian, 
In Word document, we can define the following conditional formattings within a table style:
   1. Whole table
   2. Banded columns, even column banding
   3. Banded rows, even row banding
   4. First row, last row
   5. First column, last column
   6. Top left, top right, bottom left, bottom right.

Please refer the specification of Word document from the below link:

The conditional formattings from table style are applied to a table based on following properties (defined in the table): 
·         ApplyStyleForBandedColumns  
·         ApplyStyleForBandedRows  
·         ApplyStyleForFirstColumn  
·         ApplyStyleForHeaderRow  
·         ApplyStyleForLastColumn  
·         ApplyStyleForLastRow  
These APIs are specific to each table so, you cannot modify in table style. Please refer the below screenshot for the similar options in Microsoft Word application:


Please refer the below UG documentation to know more about how to apply table style options in Word document using DocIO:

We have APIs to set built in styles and the table style options in the Word document. At present, DocIO doesn’t have API to edit the existing table style and to define customer table styles. As mentioned in our previous update, we already considered these scenarios in our feature request and we will let you know once it is implemented. 
Dilli babu 


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