http://www.aspxcn.com/dotnetarticle/html/97.html
word 和 Excel都行。

解决方案 »

  1.   

    我的.NET“添加引用”中是[excel9.OLB],而不是[excel.OLB],这样发布到用户那里不是会出醋吗?
    为什么大家都说:OWC 控件,怎么用?
      

  2.   

    用OWC:
    using OWC10;
    ...
    SpreadsheetClass xlsheet=new SpreadsheetClass();
    xlsheet.Export(Server.MapPath(".") + "\\test.xls",OWC10.SheetExportActionEnum.ssExportActionNone ,OWC10.SheetExportFormat.ssExportXMLSpreadsheet);
    xlsheet.ActiveSheet.Delete();
      

  3.   

    使用Response.Redirect()指定到Excel文件,可以在网页中直接打开的,如果不是ie默认打开的,会弹出下载页面