Remove border of table

Questions and answers on how to use DOCXReadWrite
Post Reply
MaxChan
Posts: 19
Joined: Sat Sep 03, 2016 6:38 am

Remove border of table

Post by MaxChan »

Anyone know how to remove all border of a table?
thank you very much!
larsa
Site Admin
Posts: 926
Joined: Mon Jun 27, 2005 9:30 pm

Re: Remove border of table

Post by larsa »

Hello

Add borders and set the style to None. Example:

Code: Select all

...Paras.Tables[0].TAPX.AddBorders;
...Paras.Tables[0].TAPX.BorderLeft.Style := stbNone;
...Paras.Tables[0].TAPX.BorderTop.Style := stbNone;
...Paras.Tables[0].TAPX.BorderRight.Style := stbNone;
...Paras.Tables[0].TAPX.BorderBottom.Style := stbNone;
...Paras.Tables[0].TAPX.BorderInsideHoriz.Style := stbNone;
...Paras.Tables[0].TAPX.BorderInsideVert.Style := stbNone;
Lars Arvidsson, Axolot Data
Post Reply