摘要: 命名空间:System.IO第一种方法:File.Exists(Application.StartupPath + "http://www.cnblogs.com/fengzhifengyi/admin/file://alarmset.txt/");第二种方法:System.IO.DirectoryInfo info = new System.IO.DirectoryInfo(Applicatio... 阅读全文
posted @ 2010-08-28 15:55 Wind·e 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 01/// <summary> 02/// 將 Byte 陣列轉換為 Image。 03/// </summary> 04/// <param name="Buffer">Byte 陣列。</param> 05public static Image BufferToImage(byte[] Buffer) { 06if (Buffer == null... 阅读全文
posted @ 2010-08-28 13:45 Wind&#183;e 阅读(257) 评论(0) 推荐(0) 编辑
摘要: c#操作excel后关闭excel.exe的方法 1。网上的一种说法,关闭range,关闭worksheet,关闭workbook,最后关闭excelSystem.Runtime.InteropServices.Marshal.ReleaseComObject(Range); 2System.Runtime.InteropServices.Marshal.ReleaseComObject(myBo... 阅读全文
posted @ 2010-08-28 09:35 Wind&#183;e 阅读(1019) 评论(0) 推荐(0) 编辑