We are manipulating our Word 2007 documents from .Net using Word Interop. Mostly doing stuff with fields as in:
For Each f In d.Fields
f.Select()
//d
I use unit Word_TLB in Delphi with Appliction object- Word.Application
as following:
aWordDoc.Application.Selection.EndKey(wdStory,wdMove);
generally end of word document is:
Selection.EndKey( WdUnits.wdStory, WdMovementType.wdMove)
When I use
Selection.GoTo(Word.WdGoToItem.wdGoToLine, Word.WdGoToDirection.wdGoToLast, Nothing, Nothing);
Selection.InsertFile('documnet.docx');
new content was insert before last line.