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

Outline table border in Doc.Io


I'm using the WinRT Doc.IO to create a few tables in a word document.

Teach table has a few columns and rows, and I want to provide an outline border only.

Looking at the documentation there isn't an easy way to specify just outline (unless I missed it)

I'm currently doing the following:

                IWTable table = section.AddTable();
                table.ResetCells(10, 5);
                table.TableFormat.Borders.BorderType = BorderStyle.Single;

but that gives each cell a solid border. Is there an easy way to give the table outline a border?

1 Reply

GT Gunasekaran T Syncfusion Team March 6, 2013 07:40 AM UTC

Hi Lucas,

Thank you for your interest in Syncfusion products.

We have prepared Windows Store application to illustrate your requirement to create table with only outline solid borders in Word document using DocIO. On setting WTable.TableFormat.Borders.BorderType property will apply all the borders (Outline and internal borders) for entire table, in order to clear internal borders set BorderStyle.Cleared to WTable.TableFormat.Borders.Horizontal.BorderType and WTable.TableFormat.Borders.Vertical.BorderType. Please do find the sample from the attachment for your reference. Try the attached sample and let us know if this helps you.

Please let us know if you have any other questions.



Live Chat Icon For mobile
Up arrow icon