首頁
Technology Blog
Cancel

Excel VBA Hello World

這邊DEMO使用Button讀取、寫入Excel儲存格的範例 簡單建立EXCEL 並使用VBA的方式 1.範例Eecel 2.新增一個Button 3.設定巨集名稱 4.開始撰寫程式 5.簡單的Hello World :點選button後MessageBox會跳出A1的內容 Sub 按鈕1_Click() MsgBox ThisWorkbook.Sheets("...

Entity Framework Code First if DataBase Exist3

前言 使用Fluent Api修改資料表型態、名稱等方式 好處:較能達成程式碼的耦合分離 以變更現有資料表NewDataSheets的設定為例 欄位設定如附圖 1.建議新增統一放置Config的資料夾,並在其中加入新的cs檔 例如NewDataSheetConfig.cs namespace CodeFirst.Config { using System.Data...

Entity Framework Code First if DataBase Exist-2

1.確認實體模型準備好了之後 2.執行安裝EntityFramework 指令: NuGet\Install-Package EntityFramework -Version 6.4.4 如附圖 2.執行資料遷移enable-migrations 指令: enable-migrations 如附圖 3.建立初始資料 指令: add-migration I...

Entity Framework Code First if DataBase Exist-1

前言 資料庫已存在時的Code First操作方式 這是要用來DEMO的當作已存在的資料庫 在開始DEMO之前 要先有確定有已存在的資料庫並將其連線新增至專案中 都完成了才會開始使用Code First指令 DEMO用的資料庫中的資料表的樣子 建立DEMO用資料表的Query [DemoDB]是我用來DEMO的資料庫名稱 USE [DemoDB] GO /****** Obje...

ASP.NET Use Ajax Get C# Method Data

利用AJAX跟C#串接的方式 1.在Model 建立一個新的Class 這邊取名為Employee.cs Source Code: using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace WebAjax_Example.Models { pub...

C# Connect SAP RFC

章節 開始 建立SAP RFC的範例影片 為了示範C#與SAP串接,首先我們需要先建立用來串接的SAP測試資料 建立完後接著開始做C#串接 使用C#串接 SAP RFC所需的套件 SAPDotNetConnector3: NuGet\Install-Package SAPDotNetConnector3 -Version 0.3.0 sapnco3...

C# Connect MSSQL Use Dapper

範例資料表 上圖中的資料源可從這邊取得 Github:https://github.com/digamana/Open-Sql-Data-Source 安裝 Dapper Use Nuget Setup Dapper NuGet\Install-Package Dapper -Version 2.0.123 範例資料表的Class Creat New Class Exmap...

C# Software automation Use AutoIt

事前準備:1.下載軟體 首先,需要到AutoIT官網下載軟體 AutoIT官網 因為需要使用AutoIt Window Info 事前準備:2.最高權限啟動 再來,編譯時或啟動軟體時都需使用Administrator權限 Visual Studio Administrator Mode 安裝套件AutoItX.Dotnet 使用的套件 NuGet\Install-Packag...

AutoIt Execute Software Use Admin

使用最高權限開啟指定檔案 詳見以下Source Code #include <MsgBoxConstants.au3> #include <WinAPIFiles.au3> Example() Func Example() ; Create a constant variable in Local scope of the file...