摘要: 连接 Access 2007 的操作方法 //无密码的连接字符串 string conStr = "Provider=Microsoft.Ace.OleDb.12.0;"; conStr += @"Data Source=E:\数据库\XiaoZhen.accdb;"; conStr += "Persist Security Info=False;"; //有密码的连接字符串 string conStr = "Provider=Microsoft.Ace.OleDb.12.0;"; conStr += @" 阅读全文
posted @ 2013-09-02 17:46 zero.huang 阅读(3701) 评论(0) 推荐(0) 编辑
摘要: 本文只列举一个压缩帮助类,使用的是有要添加一个dll引用ICSharpCode.SharpZipLib.dll。另外说明一下的是,这个类压缩格式是ZIP的,所以文件的后缀写成 .zip还有,如果用这个类来解压rar格式的压缩文件时会报错,就网上说的那个"Wrong Local header signature: 0x21726152"异常。只要解压ZIP压缩格式的压缩文件就不会报错了。 下面就是Helper类的代码usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usi 阅读全文
posted @ 2013-09-02 15:57 zero.huang 阅读(1812) 评论(2) 推荐(0) 编辑