G
gmshello
Unregistered / Unconfirmed
GUEST, unregistred user!
我的delphi源程序是
try
AppWord:=GetActiveOleObject('Word.Application');
except
//未运行则运行之
//AppWord:=CreateOleObject('Word.Basic');
AppWord:=CreateOleObject('Word.Application');
end;
try
连接到Word
//AppWord:=CreateOleObject('Word.Application');
WordApp.Connect;
except
WordApp.Free;
MessageDlg('请确认是否安装了Word!',mtError,[mbOK],0);
Abort;
end;
Template:='C:.dot';
//Template:=unassigned;
NewTemplate:=False;
DocumentType:=wdNewBlankDocument;
Visible:=true;
WordApp.Documents.Add(Template,NewTemplate,DocumentType,Visible);
其中AppWord为variant,WordApp为Twordapplication
请各位帮帮忙
try
AppWord:=GetActiveOleObject('Word.Application');
except
//未运行则运行之
//AppWord:=CreateOleObject('Word.Basic');
AppWord:=CreateOleObject('Word.Application');
end;
try
连接到Word
//AppWord:=CreateOleObject('Word.Application');
WordApp.Connect;
except
WordApp.Free;
MessageDlg('请确认是否安装了Word!',mtError,[mbOK],0);
Abort;
end;
Template:='C:.dot';
//Template:=unassigned;
NewTemplate:=False;
DocumentType:=wdNewBlankDocument;
Visible:=true;
WordApp.Documents.Add(Template,NewTemplate,DocumentType,Visible);
其中AppWord为variant,WordApp为Twordapplication
请各位帮帮忙