C#导出DataGridView到Excel、XML类
using System; using System.Collections.Generic; using System.Text; using System.ComponentModel; using System.Data; using Microsoft.Office.Interop.Excel; using System.IO; using System.Windows.Forms;[@more@]namespace EXcel.BLL { public class EXcelManager { public EXcelManager() { } #region 导出到EXcel private static System.Windows.Forms.DataGridView gridView; private static System.Windows.Forms.ToolStripProgressBar Progress
C#对DataGridView进行添加、修改、删除数据操作
数据库用的是本地服务器(MySql):设定变量: MySqlConnection conn; MySqlDataAdapter adapter; MySqlTransaction trans;[@more@]1. // 数据库联接 private System.Data.DataTable dbconn(string strSql) { string strconn = "host=localhost;database=test;user id=root;password="; conn = new MySqlConnection(); conn.ConnectionString = strconn; conn.Open(); this.adapter = new MySqlDataAdapter(strSql, conn);
批处理打补丁的方法
也许你面对几十个补丁,要一个一个打到Server上,有什么好办法吗? 今天我学习到了一招,经过测试还是很有效的--使用“批处理”文件。 1。首先,将所有补丁的名称写到一个txt文件中,并在其后加上 /u /z /n参数。 2。将此文件保存为install.bat。 3。双击,即可安装补丁。 :lol 实列: hotfixwindowsServer2003-KB923845-x86-chs.exe /quiet /passive /nobackup /norestart .hotfixWindowsServer2003-KB924667-v2-x86-CHS.exe /quiet /passive /nobackup /norestart .hotfixWindowsServer2003-KB925336-x86-CHS.exe /quiet /passive /no
fport mport pskill
fport fport 为一款第三方插件. 安装到本机后, 直接将其同名.exe(fport.exe) 复制到C盘根目录. 再进入cmd模式下, 切换到C: ; 输入 fport命令, 即可以看到本机所有的端口及对应的应用程序及运行程序所在的目录位置.[@more@] 通过这个插件可以有效的, 清楚的了解自己的电脑有无木马运行, 后门等. 为查找和解决木马起到了直接的作用.使用方法:开始-〉运行 输入 D:>fport.exe (假设在d:根目录) 输出结果格式如下:真是全面啊!找到宝了!fport可以带参数,其命令格式为"fport /参数",其参数含义如
惠普笔记本型号全解析
惠普(HP)家用产品线惠普笔记本分为家用和商用两大产品线,而在这两大产品线中,又都有自己的中高端和中低端型号。 家用产品线的中高端型号是HP Pavilion(畅游人)系列,中低端则是HP Compaq Presario(自由人)系列。 值得一提的是,原本属于Pavilion系列中的HDX近期被独立出来,成为家用产品线的第三大系列,定位高端市场。 商用产品线的中高端型号是HP EliteBook系列,中低端则是HP Compaq系列。综上所述,我们制作了下面的表格:惠普笔记本家用产品线商用产品线中高端型号HP Pavilion,HP HDXHP EliteBook中低端型号HP Com