ls_tmpfile = gs_app_path+"\tmp.sys"
if FileExists(ls_tmpfile) then
if filedelete(ls_tmpfile) then
f_write_filelog("3","删除临时文件:" +ls_tmpfile+ "失败")
return
end if
end if
if filemove(ls_pathname,ls_tmpfile) < 1 then return
OLEObject excelole
excelole = CREATE OLEObject
li_ret = excelole.ConnectToNewObject("Excel.Application")
if li_ret <> 0 then
MessageBox('Excel error','Excel cannot connect,error number:' + string(li_ret))
excelole.disconnectobject()
DESTROY excelole
return
end if