Package com.aspose.words

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


    font.setSize(24);
    font.setSpacing(5);
    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


    // Shows how to move a cursor position to a specified node.
    builder.moveTo(doc.getFirstSection().getBody().getLastParagraph());
   
    // Shows how to move a cursor position to the beginning or end of a document.
    builder.moveToDocumentEnd();
    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");
View Full Code Here

    // Shows how to move a cursor position to the beginning or end of a document.
    builder.moveToDocumentEnd();
    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

    DocumentBuilder builder = new DocumentBuilder(doc);
    // Write a new paragraph in the document with some text as "Sample Content..."
   
    builder.setBold(true);
   
    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

    // DocumentBuilder provides members to easily add content to a document.
    DocumentBuilder builder = new DocumentBuilder(doc);
   
    // 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);
   
View Full Code Here

  {
    Document doc = new Document();
    DocumentBuilder builder = new DocumentBuilder(doc);

    builder.startBookmark("AsposeBookmark");
    builder.writeln("Text inside a bookmark.");
    builder.endBookmark("AsposeBookmark");
   
    // By index.
    Bookmark bookmark1 = doc.getRange().getBookmarks().get(0);
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.