I want to place cell value as centre aligment with following code , is
it posssible

File templateFile = new File("TestCase" + ".odt");
 File outFile = new File("TestCaseOutput" + ".odt");

  final ODSingleXMLDocument single = new ODPackage
(templateFile).toSingle();
Element elementTable = single.getDescendantByName("table:table",
"TestCase");
//                Table t=new Table(single, element)
                Table<ODSingleXMLDocument> table = new
Table<ODSingleXMLDocument>(single, elementTable);

                table.duplicateRows(1, 1, 20);
                for (int i = 2; i < 20; i++) {
                    for (int j = 0; j < 4; j++) {
                        table.getCellAt(j, i).setValue
(i);
                    }
                }

Reply via email to