摘要: //1.打开资源管理器 OpenFileDialog open = new OpenFileDialog(); if (open.ShowDialog() == DialogResult.OK) { textBox1.Text =open.FileName; } //传入txt文件路径参数 读取tx 阅读全文
posted @ 2016-09-09 14:27 _lxl 阅读(6482) 评论(0) 推荐(0) 编辑
摘要: public List<string[]> SetList(DataTable dt) { List<string[]> list = new List<string[]>(); foreach (DataRow r in dt.Rows) { int colCount = r.ItemArray. 阅读全文
posted @ 2016-09-09 14:22 _lxl 阅读(655) 评论(0) 推荐(0) 编辑
摘要: 步骤 :引用 OPCNETAPI.DLL&&OPCNETAPI.COM.DLL 1。查询服务器 2. 连接服务器 3. 读取数据 4.写入数据 1.查询服务器 :根据IP地址进行查询 代码如下 : //查询服务器 try { Opc.Server[] servers = m_discovery.Ge 阅读全文
posted @ 2016-08-29 13:44 _lxl 阅读(9111) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 将指定字符串写入指定单元格中 /// </summary> /// <param name="data">要写入的数据源</param> /// <param name="sheetName">工作表名称(全路径+EXCEL表名称)</param> /// <pa 阅读全文
posted @ 2016-08-23 15:03 _lxl 阅读(4198) 评论(0) 推荐(0) 编辑
摘要: 这个VS2015安装包 我找了好久才找到 能在WIN 10系统下安装 下面分享链接地址给大家: http://www.ithome.com/html/win10/215213.htm 阅读全文
posted @ 2016-08-23 14:48 _lxl 阅读(855) 评论(0) 推荐(0) 编辑
摘要: 其实和调用其它WebService 没有很大不同 只是不了解SAP的人 可能不太明白 SAP接口中的相关参数 //调用接口 , 创建对象ServiceReference1.Z_IF_MM_VENDOR_SYNCClient model =newServiceReference1.Z_IF_MM_V... 阅读全文
posted @ 2015-09-28 17:08 _lxl 阅读(3828) 评论(1) 推荐(0) 编辑
摘要: //全局变量public static FileSystemWatcher Watcher; /// /// 设置监听配置 /// /// ture/false public static Boolean SetMonitorFile() { try { Watcher = new FileSy... 阅读全文
posted @ 2015-09-28 14:02 _lxl 阅读(1872) 评论(0) 推荐(1) 编辑