procedure TForm1.Button1Click(Sender: TObject);
var
RvHandle : hWnd;
ExcelApp: Variant;
begin
ExcelApp := CreateOleObject('Excel.Application');
ExcelApp.Visible := True;
ExcelApp.Caption := '应用程序调用 Microsoft Excel';
ExcelApp.WorkBooks.Add;
RvHandle := FindWindow(nil,pchar('应用程序调用 Microsoft Excel - book1'));
windows.setparent(RvHandle,Panel1.Handle);
ShowWindow(RvHandle, SW_MAXIMIZE );
end;