ABAP ole方式对EXCEL进行操作
DATA: excel    TYPE ole2_object,
      workbook TYPE ole2_object,
      sheet    TYPE ole2_object,
      cell     TYPE ole2_object,
      column   TYPE ole2_object,
      row      TYPE ole2_object.
插入列的方法:
 CALL METHOD OF excel 'COLUMNS' = column EXPORTING #1 = position .
  CALL METHOD OF column 'INSERT'.
插入行的方法:
CALL METHOD OF excel 'ROWS' = row EXPORTING #1 = position .
CALL METHOD OF row 'INSERT'.
 
                     
                    
                 
                    
                
 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号