使用微软的OWC组件,然后就可以对EXCEl进行操作了,具体的可以在网上查一下

解决方案 »

  1.   

    1.服务器上装office,然后引用excel组件2.无office组件的excel文件编写——http://www.codeproject.com/office/Excel_Export.asp
    Introduction
    I have created an Excel Export component using XSL and XML which can produce very well formatted Excel files. This doesn't require any Excel library to create Excel files without charts and macros, but if you want charts or macros in the Excel, then you have to have Excel installed on the machine. I will explain this using three examples.Export a DataTable into an Excel sheet which will not have any formatting. 
    Export an XMLDataDocument (has data from a DataTable and has a few tags added to it) into an Excel sheet which will have a lot of cool formatting. 
    Export an XMLDataDocument (has data from a DataTable and has a few tags added to it) into an Excel sheet which will have charts and a lot of cool formatting.3.excel文件读取——http://www.codeproject.com/office/Excelreader.asp
    What it can do?
    It can read read worksheets in a workbook and read cells in a worksheet. 
    It can read cell content (text, number, datetime, or error) and cell format (font, alignment, linestyle, background, etc.). 
    It can read pictures in the file, get information of image size, position, data, and format. 
    Using the code