L
LuJuhe
Unregistered / Unconfirmed
GUEST, unregistred user!
需要在程序中调用Excel,现在需要一个判断Excel是否安装的算法,我开始这么用:
try
try
v := CreateOLEOblect('Excel.Application');
ExcelInstalled := True;
except
ExcelInstalled := False;
end;
finally
if not varisnull(v) then
v.Quit;
v := unassigned;
end;
但是,这会先启动Excel,结果很慢,我想要一种快速的办法,不事先试图打开它,怎么做?
try
try
v := CreateOLEOblect('Excel.Application');
ExcelInstalled := True;
except
ExcelInstalled := False;
end;
finally
if not varisnull(v) then
v.Quit;
v := unassigned;
end;
但是,这会先启动Excel,结果很慢,我想要一种快速的办法,不事先试图打开它,怎么做?