I working on a small project where I am creating word file by Java and enter some detail in this word file.
I am able to create word file and also able to enter data into it. I also write a table into word file and enter some details.
Now what I want, I want to increase width of specific column.
Is there any way to do this? I am using Apache POI drivers for creating word file and writing data into it.
I am using below code:
XWPFDocument document= new XWPFDocument();
try{
FileOutputStream out = new FileOutputStream(
new File("d:\\createparagraph.docx"));
XWPFParagraph paragraph = document.createParagraph();
XWPFTable table = document.createTable();
XWPFTableRow tableRowOne = table.getRow(0);
tableRowOne.getCell(0).setText("CLientID");
tableRowOne.ad