WordApplication Document add text
How to paste some text to Word document if i have 开发者_如何学运维handle to TWordDocument or _Document?
Paste to the Range object of the document:
Document.Range(EmptyParam, EmptyParam).Paste;
or
Word.ActiveDocument.Range(EmptyParam, EmptyParam).Paste;
You can tell where to paste:
var
R: OleVariant;
..
R := 20;
Document.Range(R, R).Paste;
精彩评论