Delphi如何直接调用word文档?急!在线等!
我有一些word文档,要给它作成索引。不用数据库,怎么做呀!!? 问题点数:100、回复次数:4Top
1 楼bluebilly(蓝色天使)回复于 2003-09-05 09:46:43 得分 0
建议你多看一些OLE技术文档!Top
2 楼hotzhu(天下无妞)回复于 2003-09-05 09:54:16 得分 0
opendialog1.filter := '*.doc|*.doc'
if opendialog1.Execute then
begin
OleContainer1.CreateObjectFromFile(opendialog1.FileName, false);
OleContainer1.DoVerb(ovshow);
end;Top
3 楼hotzhu(天下无妞)回复于 2003-09-05 09:55:55 得分 0
if opendialog1.Execute then
begin
OleContainer1.CreateObjectFromFile(opendialog1.FileName, false);
OleContainer1.DoVerb(ovshow);
end;
Top
4 楼thebest123(凌然)回复于 2003-09-05 10:21:46 得分 100
var
FileName :string;
begin
if odgLawInput.Execute then
begin
FileName := odgLawInput.FileName;
mmoLawtext.Lines.LoadFromFile(filename);
end
else
exit;
end;Top
5 楼Miracle(新一代的开山怪)回复于 2003-09-05 10:39:40 得分 0
如果不太懂OLE、自动化的话,你可以用TurboPower的Office Partner,免费,好用,基本上除了OfficeXP新增的一些特殊功能外,Office的功能都能支持。Top




