Package com.aspose.words

Examples of com.aspose.words.Document.save()


        firstTable.getRows().add(secondTable.getFirstRow());

    // Remove the empty table container.
    secondTable.remove();

    doc.save("data/AsposeJoinTables.doc");
  }
}
View Full Code Here


   
    // Signal that we have finished building the table.
    builder.endTable();
   
    // Save the document to disk.
    doc.save("data/Aspose_CreateTable.doc");
  }
}
View Full Code Here

    builder.insertCell();
    // Clear the cell formatting from the previous cell.
    builder.getCellFormat().clearFormatting();
    builder.writeln("Cell #4");

    doc.save("data/Aspose_styledTable.doc");
   
        System.out.println("Process Completed Successfully");
  }
}
View Full Code Here

    font.setUnderline(Underline.DOUBLE);

    // Output formatted text
    builder.writeln("I'm a very nice formatted string.");

    doc.save("data/Aspose_FormattedText.doc");
   
        System.out.println("Process Completed Successfully");
  }
}
View Full Code Here

    builder.writeln("This is the end of the document.");

    builder.moveToDocumentStart();
    builder.writeln("This is the beginning of the document.");
   
    doc.save("data/AsposeMovingCursor.doc");
   
    System.out.println("Done.");
  }
}
View Full Code Here

            200,
            200,
            100,
            WrapType.SQUARE);
   
    doc.save("data/AsposeImageInDoc.docx");
  }
}
View Full Code Here

   
    builder.writeln("Aspose Sample Content for Word file.");
   
    // Save the document in DOCX format. The format to save as is inferred from the extension of the file name.
    // Aspose.Words supports saving any document in many more formats.
    doc.save("data/Aspose_NewDoc.docx",SaveFormat.DOCX);
  }
}
View Full Code Here

    // Write a new paragraph in the document with some text as "Sample Content..."
    builder.writeln("Aspose Sample Content for Word file.");
   
    // Save the document in DOCX format. The format to save as is inferred from the extension of the file name.
    // Aspose.Words supports saving any document in many more formats.
    doc.save("data/Aspose_SaveDoc.docx",SaveFormat.DOCX);
   
        System.out.println("Process Completed Successfully");
  }
}
View Full Code Here

  {
    Document doc = new Document("data/document.doc");
   
    // Save the document in DOCX format.
    // Aspose.Words supports saving any document in many more formats.
    doc.save("data/Aspose_SaveDoc.docx",SaveFormat.DOCX);
   
        System.out.println("Process Completed Successfully");
  }
}
View Full Code Here

    Bookmark bookmark1 = doc.getRange().getBookmarks().get(0);

    // By name.
    Bookmark bookmark2 = doc.getRange().getBookmarks().get("AsposeBookmark");
   
    doc.save("data/AsposebBookmark.doc", SaveFormat.DOC);
  }
}
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.