unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, OleCtnrs;type TForm1 = class(TForm) btn1: TButton; olcntnr1: TOleContainer; // 组件在 System 页 procedure btn1Click(Sender: TObject); private { Private declarations } public { Public declarations } end;var Form1: TForm1;implementation{$R *.dfm}procedure TForm1.btn1Click(Sender: TObject);begin with TOpenDialog.Create(nil) do try if Execute then begin olcntnr1.CreateObjectFromFile(FileName, False);// olcntnr1.LoadFromFile(FileName); end; finally Free; end;end;end.可以显示