代码很简单,有心人一试便知:var PptApp, PptPres: Variant; PptHandle: THandle;procedure CreatePpt;begin PptApp := CreateOleObject('PowerPoint.application'); PptHandle := FindWindow(nil, PChar(string(PptApp.Caption))); PptPres := PptApp.Presentations; PptPres.Add; PptApp.CommandBars.DisableCustomize := True; Windows.SetParent(PptHandle, Panel1.Handle); Windows.SetWindowLong(PptHandle, GWL_STYLE, GetWindowLong(PptHandle, GWL_STYLE) and WS_CHILD); Windows.MoveWindow(PptHandle, 0, 0, Panel1.Width, Panel1.Height, False); PptApp.Visible := msoTrue;end;