You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by MAHESH SHARAN <ma...@quest-global.com> on 2016/09/07 13:25:57 UTC

How to set width for particular cell in word table

Hi Mark,

Is it possible to set width for particular cell in word table using XWPF document without altering other cell width.

I am using the below code to set the width, but its setting for entire column.

tableRow.getCell(0).getCTTc().addNewTcPr().addNewTcW().setW(BigInteger.valueOf(5000));


Thanks & Regards,
         Mahesh


---Disclaimer------------------------------ This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Opinions, conclusions and other information in this transmission that do not relate to the official business of QuEST Global and/or its subsidiaries, shall be understood as neither given nor endorsed by it. Any statements made herein that are tantamount to contractual obligations, promises, claims or commitments shall not be binding on the Company unless followed by written confirmation by an authorized signatory of the Company. -----------------------------------------------------------------------------------