2011年7月20日

Asp.net/c#+OleDb操作excel文件

摘要: 、环境配置:加入using System.OleDb 2、编写连接与操作excel文件的通用函数protected void DoOleSql(string sql, string database) { OleDbConnection conn = new OleDbConnection(); conn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Server.MapPath("\\") + database + "; Extended Proper 阅读全文

posted @ 2011-07-20 14:42 lwt2005qq 阅读(273) 评论(0) 推荐(0) 编辑

用C#编程从数据库中读取图片数据导进Excel文件的方法(如何从数据库中读取保存的文件,直接打开,中间不保存到本地)

摘要: using System;using System.IO;using System.Data;using System.Drawing;using System.Drawing.Imaging;using System.Windows.Forms;using Excel;private void EduceExcel(){string picPath=Directory.GetCurrentDirectory()+'\\Excelpic.jpg';string ExcelName=Directory.GetCurrentDirectory()+'\\ExcelModul 阅读全文

posted @ 2011-07-20 14:26 lwt2005qq 阅读(886) 评论(0) 推荐(0) 编辑

导航