开发者

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;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜