TWordApplication.Document.ADD(OLE,OLE,OLE,OLE);
这段程序的参数如何写?
这段程序的参数如何写?
解决方案 »
- 怪事,ACTIVEX控件DELPHI中出错,VB,VC却没有??
- 『求教』◎◎关于ADOQuery◎◎ (求教各位大哥,小弟先谢谢了!)
- 请大家帮忙:如何将字符串转成十进制数? 在线等!
- 请大家速来帮忙
- 请问怎样实现在DBGrid中按回车符焦点移到下一个单元格中。
- 请教一下:在DELPHI中有没有这样的MESSAGEBOX?
- 请问哪能下载到DELPHI6的“英文版” ??? 专业或企业均可(最好是企业版)
- 精点推荐
- Delphi 下的Rave Designer启动失败?!
- DELPHI的程序最小多大?
- 在写Treeview的时候遇见一怪事。帮我看看。
- 偶尔出现这种错误 Connection is in use by another statement
你得先声明几个olevariant.
var
FindText, MatchCase, MatchWholeWord, MatchWildcards, MatchSoundsLike,
MatchAllWordForms, Forward, Wrap, Format, ReplaceWith, Replace: OleVariant; WordDocument.Range.Find.Execute,这里用Delphi替换了<#Name>:
var
FindText, MatchCase, MatchWholeWord, MatchWildcards, MatchSoundsLike,
MatchAllWordForms, Forward, Wrap, Format, ReplaceWith, Replace: OleVariant;
begin
FindText := ’<#Name>’;
MatchCase := False;
MatchWholeWord := True;
MatchWildcards := False;
MatchSoundsLike := False;
MatchAllWordForms := False;
Forward := True;
Wrap := wdFindContinue;
Format := False;
ReplaceWith := ’Delphi’;
Replace := True; WordDocument.Range.Find.Execute( FindText, MatchCase, MatchWholeWord,
MatchWildcards, MatchSoundsLike, MatchAllWordForms, Forward,
Wrap, Format, ReplaceWith, Replace ); end; 总有一天我会不菜的。