cxrichedit导入WORD

cxrichedit导入WORD

word := CreateOLEObject('Word.Application');
  word.Documents.Open(l_path,false);
  word.visible := false;
  word.ActiveDocument.Range(0, 0);
  Clipboard.Clear;
  RxRichEdit1.Clear;
  word.ActiveDocument.Select;
  word.selection.copy;
  RxRichEdit1.PasteFromClipboard;
  RxRichEdit1.SelStart := -1;
  word.quit;

posted @ 2018-04-03 17:39  delphi中间件  阅读(712)  评论(0编辑  收藏  举报