随笔分类 -  office

摘要:以前做web 程序的时候在.net环境下有时候是非常难将当前的excel或者word线程关闭,有时候在程序里面执行完excel关闭并且释放相关资源,但在服务器端的excel进程要等一会才能被关闭掉。如果用户在客户端平凡对excel操作(在很短的时间内),即使在程序里面控制了对excel组件的释放和回收,但是有可能服务器端有N个excel进程没有被关闭,造成服务器可能死掉。我相信有过对excel编程... 阅读全文
posted @ 2008-01-25 16:20 Farrell 阅读(1714) 评论(3) 推荐(0)
摘要:namespace ImportExportToOffice{ using System; using System.ComponentModel; using System.Data; using System.Windows.Forms; public class ImportExportToWord { private Word.ApplicationClass oWordApplic; ... 阅读全文
posted @ 2008-01-24 14:52 Farrell 阅读(1532) 评论(6) 推荐(0)
摘要:以下是一些对excel的一些基本操作1:工程对excel类库的导入,如:c:\program files\Microsoft office\offiece11\excel.exe2:命名控件的引入: using Microsoft.office.Interop.Excel;3:如果是对一个已经存在的excel文件进行操作则:Application app=new Application();Wor... 阅读全文
posted @ 2008-01-24 11:36 Farrell 阅读(11458) 评论(0) 推荐(0)

友情连接