高份求助----急!!!!!!!!!!!!!!1
在Server组件族中的TWordDocument中有这么一句:
tworddocument.Paragraphs.Item(26).Range.InsertFile(fname,fo,fo,fo,fo);
其中:fname:=extractfilepath(paramstr(0))+'database\filename.doc';
fo是olevariant.让fo:=false;
运行时出现以下错误:
project project1.exe raise exception class eoleexception with
message '类型不匹配'.