摘要:
https://blog.csdn.net/softimite_zifeng/article/details/54177825 阅读全文
摘要:
一、从字符串向DateTime转换时失败 写成:DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") 二、SQL Server重命名数据库及解决数据库无法分离的问题 1、重命名数据库 https://blog.51cto.com/yinkai/2336573 2、 阅读全文
摘要:
一、bin文件 1、读写 /// <summary> /// 加载任意二进制文件 /// </summary> public static bool LoadBinaryFile(ref WaveData_Class testObj, string Fliepath) { bool res = fa 阅读全文
摘要:
一、读写 /// <summary> /// 保存到csv /// </summary> public static void SaveCsv(string Path, string[] strArr) { //string path = System.AppDomain.CurrentDomain 阅读全文
摘要:
一、ini文件 1、创建、读写 https://www.cnblogs.com/xmy-007/p/6400221.html 二、xml文件 1、读写 /// <summary> /// 加载xml文件保存到指定类 /// </summary> public static bool LoadXml( 阅读全文
摘要:
一、读写TXT /// <summary> /// 读取txt /// </summary> public static string[] ReadTxt(string path) { List<string> str = new List<string>(); StreamReader sr = 阅读全文
摘要:
一、DataTable导入导出Excel using System; using System.Collections.Generic; using System.Data; using System.Data.OleDb; using System.IO; using System.Linq; u 阅读全文
摘要:
一、DataTable与Excel的文件读写 1、Excel导出到DataTable using NPOI.SS.UserModel; using System; using System.Collections.Generic; using System.Data; using System.IO 阅读全文
摘要:
一、大量数据导出到Excel https://www.cnblogs.com/xiaoheihei/p/8315856.html 程序由原始的将数据一个表格一个表格地写入到EXCEL中,改变成程序先将数据存入二维数组中,然后再将数组值赋予EXCEL应用程序对象的VALUE属性,这样就使导出的效率提高 阅读全文
摘要:
一、Excel 1、Datagridview导出Excel https://blog.csdn.net/binbingbong/article/details/106051194 public class xlsP { public string sheetname { get; set; } pu 阅读全文