在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 '类型不匹配'.
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 '类型不匹配'.
解决方案 »
- fastreport页面怎么全预览编辑啊
- 请教一个问题:关于一套程序同时支持SQL 2005 &orcale
- 如何记录、释放TForm??
- 高价求购:哪有EsSearch查询控件下载?playicq竟然要收钱!
- 为重庆开县井喷、伊朗地震事故中的死难者默哀!
- 哪位大侠有条码打印的控件或技术,高分请教
- 动态生成的tabsheet及richedit的问题!
- 我把xpmenu改写了,真正支持xp效果,进来看。
- 不能比较或排序 text、ntext 和 image 数据类型
- 各位:咱们进来看以下?
- 谁能提供有Rave 的汉化?非常感谢~~~~~~~~~~~~~~~~~~~~~~~~``
- 新手提问,大家多多帮忙!!
正如你说的
fo 应该是variant