This project is read-only.

Aspose.Words - Moving the Cursor

Document doc = new Document("data/document.doc");
DocumentBuilder builder = new DocumentBuilder(doc);

//Shows how to access the current node in a document builder.
Node curNode = builder.getCurrentNode();
Paragraph curParagraph = builder.getCurrentParagraph();

// Shows how to move a cursor position to a specified node.

// Shows how to move a cursor position to the beginning or end of a document.
builder.writeln("This is the end of the document.");

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

Download Source Code

For More Examples, Please Visit Aspose Docs

Last edited May 30, 2014 at 5:07 AM by shoaibkhan, version 1