使用ole的方法獲取本地指定excel的sheet的名字列表:
report zzxtest.
include ole2incl.
parameters : p_file like rlgrap-filename default
of itab_sheetname occurs
0 ,
sheetname(40 ) ,
endof itab_sheetname .
data : sheetcount type
property
method
method
of book 'open'
exporting #1 = p_file.
call
method
property
of sheet 'count' = sheetcount.
do sheetcount times .
call
method
property
at itab_sheetname.
write / itab_sheetname.
endloop .
getproperty
call
method
of book 'close' .
call
method
python獲取excel檔案維護的用例
import os import xlrd 自定義異常 class sheettypeerror exception print 檔名稱或者路徑問題 1 驗證檔案是否存在,存在讀取,不存在報錯 class excelreader 讀取 中的用例 def init self,excel file,sh...
c 獲取Excel內容的分析
現在主流的excel文件有2003和2007 c 獲取 excel2003 連線字串 string strconn provider microsoft.jet.oledb.4.0 data source filepath extended properties excel 8.0 filepath...
用c 讀取Excel的方法
用c 讀取excel的方法 public abstract new excel.workbook open system.string filename system.object updatelinks system.object readonly system.object format sys...