Package org.docx4j.dml

Examples of org.docx4j.dml.CTTable


   
    graphic.setGraphicData(graphicData);
    graphicData
        .setUri("http://schemas.openxmlformats.org/drawingml/2006/table");
       
    CTTable ctTable = dmlFactory.createCTTable();
    JAXBElement<CTTable> tbl = dmlFactory.createTbl(ctTable);
    graphicData.getAny().add(tbl);
   
    CTTableGrid ctTableGrid = dmlFactory.createCTTableGrid();   
    CTTableCol gridCol = dmlFactory.createCTTableCol();
    ctTable.setTblGrid(ctTableGrid);
    ctTableGrid.getGridCol().add(gridCol);
    ctTableGrid.getGridCol().add(gridCol);
    gridCol.setW(300000);

    CTTableRow ctTableRow = dmlFactory.createCTTableRow();
    ctTableRow.setH(370840);
   
   
    ctTableRow.getTc().add(createTableCell());
    ctTableRow.getTc().add(createTableCell());
   
    for (int i = 0; i < 4; i++) {
      ctTable.getTr().add(ctTableRow);
    }
   
    return graphicFrame;
 
View Full Code Here


   
    graphic.setGraphicData(graphicData);
    graphicData
        .setUri("http://schemas.openxmlformats.org/drawingml/2006/table");
       
    CTTable ctTable = dmlFactory.createCTTable();
    JAXBElement<CTTable> tbl = dmlFactory.createTbl(ctTable);
    graphicData.getAny().add(tbl);
   
    CTTableGrid ctTableGrid = dmlFactory.createCTTableGrid();   
    CTTableCol gridCol = dmlFactory.createCTTableCol();
    ctTable.setTblGrid(ctTableGrid);
    ctTableGrid.getGridCol().add(gridCol);
    ctTableGrid.getGridCol().add(gridCol);
    gridCol.setW(300000);

    CTTableRow ctTableRow = dmlFactory.createCTTableRow();
    ctTableRow.setH(370840);
   
   
    ctTableRow.getTc().add(createTableCell());
    ctTableRow.getTc().add(createTableCell());
   
    for (int i = 0; i < 4; i++) {
      ctTable.getTr().add(ctTableRow);
    }
   
    return graphicFrame;
 
View Full Code Here

TOP

Related Classes of org.docx4j.dml.CTTable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.