原创 c#郵件類

using System; using System.Collections.Generic; using System.Linq; using System.Net; using System.Net.Mail; using Syst

原创 vs2019web項目調試

原创 批處理複製多文件夾

echo off d: cd d:\Ch\Git\base rem 刪除所有文件 del /s /q *.* rem 逐個文件夾複製文件 for /d %%i in (*) do ( copy d:\Ch\AklibD\%%i\*.*

原创 vba顯示圖片文件

Sub Button1_Click() Dim sht As Worksheet, rng As Range, picPath As String Set sht = ActiveSheet Set rng =

原创 c#獲取某個目錄下前20個較大的文件

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; using AkImpor

原创 Excel浮點數比較

最近有一個需求: 1. 小於10kg,保留1位小數(四捨五入) 2. 大於等於10kg且小於100kg,先保留2位(四捨五入),然後保留1位(0.5整數位,2退3進7退8進) 3. 大於100kg,保留整數(四捨五入) 完整公式如下:

原创 openxml輸出excel文件帶格式樣式

private void btnTest_Click(object sender, EventArgs e) { ((Button)sender).Enabled = false;

原创 wpf單例及帶參數調用

using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Diagnostic

原创 sqlserver 字段長度大於數據庫表字段或者內存表與數據庫表字段不匹配提示

DataTable dtCompare = new DataTable(); dtCompare.Columns.Add("FieldName", typeof(strin

原创 ACCESS生成GUID

Function CreateGuid(ParamArray S() As Variant) As String CreateGuid = "{" + LCase(Mid$(CreateObject("Scriptlet.Typ

原创 wpf播放器

原文:https://www.cnblogs.com/tianma3798/p/5928217.html using System; using System.Collections.Generic; using System.Linq

原创 OpenXML方式輸出到Excel(考慮超百萬)

/// <summary> /// 輸出到單個Excel文件,考慮超100萬的數據 2019.12.24 /// </summary> /// <param name="c

原创 openxml創建excel文件

// WorkbookPart -> Workbook // (上面 (wbPart.AddNewPart<WorksheetPart>) )WorksheetPart -> Works

原创 OpenXml之SpreadSheetML學習

 需要引用windowsbase using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Th

原创 wpf選擇文件

private void btnOpenXlsx_Click(object sender, RoutedEventArgs e) { var openFileDialog = ne