L
leoruby
Unregistered / Unconfirmed
GUEST, unregistred user!
我已经加了wordapplication控件,想要打开的文档为:f:/temp.doc,但编译的时候都通不过去。
第一次控制word,哪里错了呢?
procedure TForm1.Button1Click(Sender: TObject);
var
do
cfilenamelevariant;
begin
do
cfilename:='f:/temp.doc';
wordapplication1.Documents.Open(Docfilename,emptyparam,emptyparam,emptyparam,emptyparam,emptyparam,emptyparam,emptyparam,emptyparam);
wordapplication1.Visible:=true;
end;
第一次控制word,哪里错了呢?
procedure TForm1.Button1Click(Sender: TObject);
var
do
cfilenamelevariant;
begin
do
cfilename:='f:/temp.doc';
wordapplication1.Documents.Open(Docfilename,emptyparam,emptyparam,emptyparam,emptyparam,emptyparam,emptyparam,emptyparam,emptyparam);
wordapplication1.Visible:=true;
end;