博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

12 2013 档案

摘要:最近在将excel中的文件导入到数据库中,用程序进行编写,由于数据量较大所以速度很慢,后来采用了SqlBulkCopy类,解决了速度的问题,我就insert语句,sqldataadapter.update(dataset,tablename);sqlbulkcopy.WriteToServer(datatable);三个方法的性能进行比较:1、生成测试的datatable表,表结构如下:UniqueID(主键,自动增长) | CompanyName | CompanyCode | Address | Owner | Memo共6个字段。SqlConnection sqlconnection = 阅读全文

posted @ 2013-12-07 09:22 hyruur 阅读(830) 评论(0) 推荐(0)

摘要:int HeightMax = 0;int WidthMax =0;HeightMax =webBrowser1.Document.Body.ScrollRectangle.Height-webBrowser1.ClientRectangle.Height;WidthMax =webBrowser1.Document.Body.ScrollRectangle.Width-webBrowser1.ClientRectangle.Width;//滚动到指定位置webBrowser1.Document.Window.ScrollTo(WidthMax, HeightMax); 阅读全文

posted @ 2013-12-04 17:10 hyruur 阅读(784) 评论(0) 推荐(0)

摘要:usingSystem;usingSystem.Runtime.InteropServices;usingSystem.Text;usingSystem.IO;namespaceHTMLConversion{//////HtmlConvertToMht类///#regionHtmlConvertToMht类的实现publicclassHtmlConvertToMhtByCdo:IHtmlConvertToMht{publicHtmlConvertToMhtByCdo(){////TODO:在此处添加构造函数逻辑//}#region变量string_CharSet="gb2312&qu 阅读全文

posted @ 2013-12-04 14:15 hyruur 阅读(1007) 评论(1) 推荐(0)