procedure TForm1.startClick(Sender: TObject);
var
Template,NewTemplate,ItemIndex,DocumentType,Visible:OleVariant;
begin
try
WordApp.Connect;
except
MessageDlg('Word可能没有安装!', mtError, [mbOk], 0);
Abort;
end;
WordApp.Connect;
WordApp.Visible := false;
Template := EmptyParam;
NewTemplate := false; //True;
DocumentType:=$00000001;
Visible:=true;
ItemIndex := 1;
WordApp.Documents.Add(Template, NewTemplate,DocumentType,Visible);
WordDoc.ConnectTo(WordApp.Documents.Item(ItemIndex));
WordApp.Options.CheckSpellingAsYouType := False;
WordApp.Options.CheckGrammarAsYouType := False;
wordapp.Selection.Paste;
wordapp.Selection.WholeStory;
wordapp.Selection.Copy;
Editor.PasteFromClipboard;//TRxRichEdit
end;
//含图象的copy速度要慢