Z
zhangyvping
Unregistered / Unconfirmed
GUEST, unregistred user!
以下是DELPHI5的一段例程,搞了半天,却不知道怎么让WordObject在visible的时候
打开指定的文件,请各位兄弟指点。
uses
AutoImpl;
var
WordObject : TWordObject;
procedure TForm1.LaunchButtonClick(Sender: TObject);
begin
if not Assigned(WordObject) then begin
WordObject := TWordObject.Create;
with WordObject do begin
Caption := 'Delphi is RAD!';
Visible := True;
OnQuit := AppQuit;
OnDocumentChange := AppDocumentChange;
OnNewDocument := DocNew;
OnOpenDocument := DocOpen;
OnCloseDocument := DocClose;
end;
end;
end;
打开指定的文件,请各位兄弟指点。
uses
AutoImpl;
var
WordObject : TWordObject;
procedure TForm1.LaunchButtonClick(Sender: TObject);
begin
if not Assigned(WordObject) then begin
WordObject := TWordObject.Create;
with WordObject do begin
Caption := 'Delphi is RAD!';
Visible := True;
OnQuit := AppQuit;
OnDocumentChange := AppDocumentChange;
OnNewDocument := DocNew;
OnOpenDocument := DocOpen;
OnCloseDocument := DocClose;
end;
end;
end;