W
W1979
Unregistered / Unconfirmed
GUEST, unregistred user!
今天下午刚开始学自动化,卡在了这里:
用的是server页上的几个元件
procedure TForm1.Button1Click(Sender: TObject);
var i,j,k,rangeslevariant;
begin
i:='';
j:=false;
k:=1 ;
wordapplication1.Connect;
wordapplication1.Visible:=true;
wordapplication1.Documents.Add(i,j);
wordDocument1.ConnectTo(wordApplication1.Documents.Item(k));
worddocument1.Activate;
ranges:=wordDocument1.Range;
ranges.text:='hello world!';
end;
程序有个问题,word被调用时并不出现在前台,而是被主程序盖住了,请问如何解决?
<a href="http://202.120.85.61/DELPHIBBS/DispQ.asp?LID=173546">'</a>
用的是server页上的几个元件
procedure TForm1.Button1Click(Sender: TObject);
var i,j,k,rangeslevariant;
begin
i:='';
j:=false;
k:=1 ;
wordapplication1.Connect;
wordapplication1.Visible:=true;
wordapplication1.Documents.Add(i,j);
wordDocument1.ConnectTo(wordApplication1.Documents.Item(k));
worddocument1.Activate;
ranges:=wordDocument1.Range;
ranges.text:='hello world!';
end;
程序有个问题,word被调用时并不出现在前台,而是被主程序盖住了,请问如何解决?
<a href="http://202.120.85.61/DELPHIBBS/DispQ.asp?LID=173546">'</a>