<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[SlowCattle的专栏]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/SlowCattle</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; SlowCattle]]></copyright><item><title><![CDATA[C# 字符串函数 及 字符串操作]]></title><link>https://blog.youkuaiyun.com/SlowCattle/article/details/6461775</link><guid>https://blog.youkuaiyun.com/SlowCattle/article/details/6461775</guid><author>SlowCattle</author><pubDate>Thu, 02 Jun 2011 16:46:00 +0800</pubDate><description><![CDATA[<br />Compare 比较字符串的内容，考虑文化背景(场所)，确定某些字符是否相等<br /> <br />CompareOrdinal 与Compare一样，但不考虑文化背景<br /> <br />Format 格式化包含各种值的字符串和如何格式化每个值的说明符<br /> <br />IndexOf 定位字符串中第一次出现某个给定子字符串或字符的位置<br /> <br />IndexOfAny 定位字符串中第一次出现某个字符或一组字符的位置<br /> <br />LastIndexOf 与I]]></description><category></category></item><item><title><![CDATA[ImportToSqlServer；GetSheetNames；InsertRows]]></title><link>https://blog.youkuaiyun.com/SlowCattle/article/details/6455075</link><guid>https://blog.youkuaiyun.com/SlowCattle/article/details/6455075</guid><author>SlowCattle</author><pubDate>Mon, 30 May 2011 16:45:00 +0800</pubDate><description><![CDATA[<br />using System;<br />using System.Collections.Generic;<br />using System.ComponentModel;<br />using System.Data;<br />using System.Drawing;<br />using System.Linq;<br />using System.Text;<br />using System.Windows.Forms;<br />using System.Data.OleDb;<b]]></description><category></category></item><item><title><![CDATA[C# 将数据导出到Execl汇总]]></title><link>https://blog.youkuaiyun.com/SlowCattle/article/details/6454762</link><guid>https://blog.youkuaiyun.com/SlowCattle/article/details/6454762</guid><author>SlowCattle</author><pubDate>Mon, 30 May 2011 15:00:00 +0800</pubDate><description><![CDATA[<br />一、asp.net中导出Execl的方法：<br />在asp.net中导出Execl有两种方法，一种是将导出的文件存放在服务器某个文件夹下面，然后将文件地址输出在浏览器上；一种是将文件直接将文件输出流写给浏览器。在Response输出时，t分隔的数据，导出execl时，等价于分列，n等价于换行。 <br />1、将整个html全部输出execl<br />此法将html中所有的内容，如按钮，表格，图片等全部输出到Execl中。 <br />   Response.Clear();     <b]]></description><category></category></item><item><title><![CDATA[C#操作Excel(创建、打开、读写、保存)几种方法的总结]]></title><link>https://blog.youkuaiyun.com/SlowCattle/article/details/6454752</link><guid>https://blog.youkuaiyun.com/SlowCattle/article/details/6454752</guid><author>SlowCattle</author><pubDate>Mon, 30 May 2011 14:55:00 +0800</pubDate><description><![CDATA[<br />C#操作Excel(创建、打开、读写、保存)几种方法的总结<br />Posted on 2010-04-27 22:38 Happy Coding阅读(1588) 评论(1)编辑收藏<br /><br />      在.NET开发中，不管是web程序还是桌面软件（尤其是涉及数据库操作的MIS系统等），常常需操作Excel，如导出数据到Excel，读取Excel中数据到程序中等。总结起来，其操作不外乎创建、打开、读写、保存（后退出/释放），而其操作方法，则主要有：通过ADO.NET数据连接方式]]></description><category></category></item><item><title><![CDATA[【转】 C# 操作excel 大全]]></title><link>https://blog.youkuaiyun.com/SlowCattle/article/details/6454718</link><guid>https://blog.youkuaiyun.com/SlowCattle/article/details/6454718</guid><author>SlowCattle</author><pubDate>Mon, 30 May 2011 14:46:00 +0800</pubDate><description><![CDATA[<br />A>Read  <br /> 有两种方法：<br />   a.OleDbConnection 示例代码如下：<br /> <br /> 1 String connStr="Provider=Microsoft.Jet.OLEDB.4.0;Data Source="+strFilePath+";Extended Properties=Excel 8.0;";<br /> 2 System.Data.OleDb.OleDbConnection con=new System.Data.OleDb.O]]></description><category></category></item><item><title><![CDATA[利用 SqlbulkCopy 快速导入 Excel 数据至 SQLServer 数据库中]]></title><link>https://blog.youkuaiyun.com/SlowCattle/article/details/6450693</link><guid>https://blog.youkuaiyun.com/SlowCattle/article/details/6450693</guid><author>SlowCattle</author><pubDate>Fri, 27 May 2011 17:51:00 +0800</pubDate><description><![CDATA[<br />利用 SqlbulkCopy ，将Excel数据导入数据库，代码显得非常简单。更重要的是，导入速度之快、超出预期想像。<br /><br />本代码环境：VS2010、Excel2007、SqlServer 2008<br /><br />using System;<br />using System.Collections.Generic;<br />using System.ComponentModel;<br />using System.Data;<br />using System.D]]></description><category></category></item></channel></rss>