为项目添加 COM 组件的引用
Microsoft Excel Object 11.0 Object Library
增加 3 个引用 Excel、Microsoft.Office.Core、VBIDE
using System.Reflection;
using System.Runtime.InteropServices;
using Microsoft.Office.Interop.Excel;
Microsoft.Office.Interop.Excel.Application app = new Microsoft.Office.Interop.Excel.Application();