Package com.aspose.words

Examples of com.aspose.words.DocumentBuilder.startTable()


      // Add hyperlink
      wordDocBuilder.insertHyperlink("LINK", "http://www.google.lu",
          false);
      wordDocBuilder.writeln();
      // Add a table
      wordDocBuilder.startTable();
      // --Row 1 with 2 cell
      Cell cell = wordDocBuilder.insertCell();
      cell.getCellFormat().setVerticalAlignment(
          CellVerticalAlignment.CENTER);
      wordDocBuilder.writeln("Row 1 Cell 1 Text");
View Full Code Here


  {
    Document doc = new Document();
    DocumentBuilder builder = new DocumentBuilder(doc);
   
    // We call this method to start building the table.
    builder.startTable();
    builder.insertCell();
    builder.write("Row 1, Cell 1 Content.");
   
    // Build the second cell
    builder.insertCell();
View Full Code Here

  public static void main(String[] args) throws Exception
  {
    Document doc = new Document();
    DocumentBuilder builder = new DocumentBuilder(doc);

    Table table = builder.startTable();
    builder.insertCell();

    // Set the borders for the entire table.
    table.setBorders(LineStyle.SINGLE, 2.0, Color.BLACK);
    // Set the cell shading for this cell.
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.