If you need to move to the beginning of the document, call MoveToDocumentStart. If you need to move to the end of the document, call MoveToDocumentEnd.
Example DocumentBuilderMoveToDocumentStartEnd
Shows how to move a cursor position to the beginning or end of a document.
[C#]
Document doc = new Document(MyDir + "DocumentBuilder.doc");
DocumentBuilder builder = new DocumentBuilder(doc);
builder.MoveToDocumentEnd();
builder.Writeln("This is the end of the document.");
builder.MoveToDocumentStart();
builder.Writeln("This is the beginning of the document.");
[Visual Basic]
Dim doc As Document = New Document(MyDir & "DocumentBuilder.doc")
Dim builder As DocumentBuilder = New DocumentBuilder(doc)
builder.MoveToDocumentEnd()
builder.Writeln("This is the end of the document.")
builder.MoveToDocumentStart()
builder.Writeln("This is the beginning of the document.")
[Java]
Document doc = new Document(getMyDir() + "DocumentBuilder.doc");
DocumentBuilder builder = new DocumentBuilder(doc);
builder.moveToDocumentEnd();
builder.writeln("This is the end of the document.");
builder.moveToDocumentStart();
builder.writeln("This is the beginning of the document.");