摘要: 在工控行业中,有很多地方需要将数据生成报表,如PDF,excel格式等。 其中PDF格式比较简单,今天介绍下如何操作excel。 string filePath = new DirectoryInfo("./").FullName + "TWTS_Config\\扳手借出数据表.xls"; //模板 阅读全文
posted @ 2021-08-04 22:51 fate_WPF 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 原博客:https://www.cnblogs.com/felix-wang/p/6638217.html TimeSpan 结构 表示一个时间间隔。 命名空间:System 程序集:mscorlib(在 mscorlib.dll 中) 说明: 1.DateTime值类型代表了一个从公元0001年1 阅读全文
posted @ 2021-08-04 00:53 fate_WPF 阅读(671) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/rooly/articles/1910063.html 我们在程序中经常会用到MessageBox。 MessageBox.Show()共有21中重载方法。现将其常见用法总结如下: 1.MessageBox.Show("Hello~~~~"); 最简单 阅读全文
posted @ 2021-08-04 00:47 fate_WPF 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 以下两段语句最终效果均为用数据库插入数据,请先对比观察它们的不同: string sql = string.Concat(new object[] {"insert into 表名(字段1,字段2) values('",值1,"','",值2,"')"}); string sql = "insert 阅读全文
posted @ 2021-08-04 00:29 fate_WPF 阅读(784) 评论(0) 推荐(1) 编辑
摘要: OUT的简单使用: static void Main(string[] args) { int[] arr = { 1, 5, 2, 6, 0, 3, 9, 4, 2 }; int max, min; float average; UseOut(arr, out max,out min,out av 阅读全文
posted @ 2021-08-04 00:21 fate_WPF 阅读(276) 评论(0) 推荐(0) 编辑