pb:导入EXCEL,提示“不能连接EXCEL”
-------------------------------------------------------------------------------------------------------------------------------
1.pb连上EXCEL代码:
//从EXCEL读取文件
STRING LS_PATH,LS_FILE,ls_file_tmp
oleobject ole_1
int li_rtn
long ll_count
long ll_row
string ls_tmp
ole_1=create oleobject
li_rtn=ole_1.connecttoNEWobject("Excel.Application")
if li_rtn<>0 then
messagebox("提示","不能连接EXCEL")
return 0
end if
运行后提示不能连接EXCEL